Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6457)

Unified Diff: chrome/browser/extensions/menu_manager.cc

Issue 11824004: Do not pass URLs in onUpdated events to extensions unless they have the (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Update test Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/menu_manager.cc
diff --git a/chrome/browser/extensions/menu_manager.cc b/chrome/browser/extensions/menu_manager.cc
index b20afaf90baf4d916024f1d6d63020a4a9261d78..077c5649cc67d863ee6f005e6dc069316c72a402 100644
--- a/chrome/browser/extensions/menu_manager.cc
+++ b/chrome/browser/extensions/menu_manager.cc
@@ -644,8 +644,7 @@ void MenuManager::ExecuteCommand(Profile* profile,
if (!extension || !extension->is_platform_app()) {
// Note: web_contents are NULL in unit tests :(
if (web_contents) {
- args->Append(ExtensionTabUtil::CreateTabValue(
- web_contents, ExtensionTabUtil::INCLUDE_PRIVACY_SENSITIVE_FIELDS));
+ args->Append(ExtensionTabUtil::CreateTabValue(web_contents));
} else {
args->Append(new DictionaryValue());
}

Powered by Google App Engine
This is Rietveld 408576698