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

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

Issue 7346024: Get rid of the ProfileId. It was added for ceee. I reverted the original change, since it led to ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_event_router_forwarder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_event_router.cc
===================================================================
--- chrome/browser/extensions/extension_event_router.cc (revision 92309)
+++ chrome/browser/extensions/extension_event_router.cc (working copy)
@@ -23,11 +23,11 @@
const char kDispatchEvent[] = "Event.dispatchJSON";
static void NotifyEventListenerRemovedOnIOThread(
- ProfileId profile_id,
+ void* profile,
const std::string& extension_id,
const std::string& sub_event_name) {
ExtensionWebRequestEventRouter::GetInstance()->RemoveEventListener(
- profile_id, extension_id, sub_event_name);
+ profile, extension_id, sub_event_name);
}
} // namespace
@@ -115,7 +115,7 @@
BrowserThread::IO, FROM_HERE,
NewRunnableFunction(
&NotifyEventListenerRemovedOnIOThread,
- profile_->GetRuntimeId(), listener.extension_id, event_name));
+ profile_, listener.extension_id, event_name));
}
bool ExtensionEventRouter::HasEventListener(const std::string& event_name) {
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_event_router_forwarder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698