diff options
Diffstat (limited to 'chrome/browser/extensions/menu_manager.cc')
-rw-r--r-- | chrome/browser/extensions/menu_manager.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/extensions/menu_manager.cc b/chrome/browser/extensions/menu_manager.cc index bd2e0eb..33fcb08 100644 --- a/chrome/browser/extensions/menu_manager.cc +++ b/chrome/browser/extensions/menu_manager.cc @@ -643,10 +643,12 @@ void MenuManager::ExecuteCommand(Profile* profile, // No tab info in a platform app. if (!extension || !extension->is_platform_app()) { // Note: web_contents are NULL in unit tests :( - if (web_contents) - args->Append(ExtensionTabUtil::CreateTabValue(web_contents, extension)); - else + if (web_contents) { + args->Append(ExtensionTabUtil::CreateTabValue( + web_contents, ExtensionTabUtil::INCLUDE_PRIVACY_SENSITIVE_FIELDS)); + } else { args->Append(new DictionaryValue()); + } } if (item->type() == MenuItem::CHECKBOX || |