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

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

Issue 359493005: Extend contextMenus API to support browser/page actions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed yoyo's comments, restricted items to relevant extension Created 6 years, 6 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 e40b467272de299a68791f42f416c93720d44a96..62bd2e75c6f23b242a196983aaebecd2be85d4ef 100644
--- a/chrome/browser/extensions/menu_manager.cc
+++ b/chrome/browser/extensions/menu_manager.cc
@@ -661,6 +661,9 @@ void MenuManager::ExecuteCommand(Profile* profile,
webview_guest->view_instance_id());
}
+ if (params.extension_id.length() > 0)
Devlin 2014/07/01 20:54:24 nit: prefer "!params.extension_id.empty()"
+ properties->SetString("extension_id", params.extension_id);
Devlin 2014/07/01 20:54:24 it looks like we prefer camelCaseStyle for these k
+
args->Append(properties);
// Add the tab info to the argument list.

Powered by Google App Engine
This is Rietveld 408576698