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

Unified Diff: chrome/browser/browser.cc

Issue 264046: Update browser actions api to be like new design doc. (Closed)
Patch Set: rebase Created 11 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_browser_actions_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser.cc
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index 2bfd17a691ef855ae3d66c19959298268c273329..60a78ceb669df34e97aee46cab8019ef3ebe04f4 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -1479,9 +1479,8 @@ void Browser::ExecuteCommand(int id) {
service->GetBrowserActions(false); // false means no popup actions.
for (size_t i = 0; i < browser_actions.size(); ++i) {
if (browser_actions[i]->command_id() == id) {
- int window_id = ExtensionTabUtil::GetWindowId(this);
ExtensionBrowserEventRouter::GetInstance()->BrowserActionExecuted(
- profile_, browser_actions[i]->extension_id(), window_id);
+ profile_, browser_actions[i]->extension_id(), this);
return;
}
}
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_browser_actions_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698