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

Unified Diff: chrome/browser/ui/cocoa/location_bar/page_action_decoration.mm

Issue 270153004: Introduce ActiveScriptController; track active extension scripts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: UMA Created 6 years, 7 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/ui/cocoa/location_bar/page_action_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/page_action_decoration.mm b/chrome/browser/ui/cocoa/location_bar/page_action_decoration.mm
index f0af376e7eb9e41ea0ab29435e88d506ac9b4173..5860757a9ff91a75feaf0aedf0b531ae208df85c 100644
--- a/chrome/browser/ui/cocoa/location_bar/page_action_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/page_action_decoration.mm
@@ -104,8 +104,8 @@ bool PageActionDecoration::ActivatePageAction(NSRect frame) {
extensions::TabHelper::FromWebContents(web_contents)->
location_bar_controller();
- // 1 is left click.
- switch (controller->OnClicked(page_action_->extension_id(), 1)) {
+ switch (controller->OnClicked(page_action_,
+ LocationBarController::MOUSE_BUTTON_LEFT)) {
case LocationBarController::ACTION_NONE:
break;

Powered by Google App Engine
This is Rietveld 408576698