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

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

Issue 155514: Implement extension specific events (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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_browser_event_router.cc
===================================================================
--- chrome/browser/extensions/extension_browser_event_router.cc (revision 20629)
+++ chrome/browser/extensions/extension_browser_event_router.cc (working copy)
@@ -329,6 +329,7 @@
void ExtensionBrowserEventRouter::TabStripEmpty() { }
void ExtensionBrowserEventRouter::PageActionExecuted(Profile* profile,
+ std::string extension_id,
std::string page_action_id,
int tab_id,
std::string url) {
@@ -346,5 +347,6 @@
std::string json_args;
JSONWriter::Write(&args, false, &json_args);
- DispatchEvent(profile, events::kOnPageActionExecuted, json_args);
+ std::string event_name = extension_id + std::string("/") + page_action_id;
+ DispatchEvent(profile, event_name.c_str(), json_args);
}

Powered by Google App Engine
This is Rietveld 408576698