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

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

Issue 10911300: Move ExtensionAction from common/ to browser/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: proof of concept Created 8 years, 3 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/extension_toolbar_model.cc
diff --git a/chrome/browser/extensions/extension_toolbar_model.cc b/chrome/browser/extensions/extension_toolbar_model.cc
index 13c5e3ff144d83b52f9269326fb36711811a0260..531cd1de282749b58cd6bc9c755a295b16ed9f7b 100644
--- a/chrome/browser/extensions/extension_toolbar_model.cc
+++ b/chrome/browser/extensions/extension_toolbar_model.cc
@@ -115,7 +115,8 @@ ExtensionToolbarModel::Action ExtensionToolbarModel::ExecuteBrowserAction(
if (tab_id < 0)
return ACTION_NONE;
- ExtensionAction* browser_action = extension->browser_action();
+ ExtensionAction* browser_action = GetBrowserAction(tab_contents->profile(),
+ *extension);
// For browser actions, visibility == enabledness.
if (!browser_action->GetIsVisible(tab_id))

Powered by Google App Engine
This is Rietveld 408576698