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

Unified Diff: chrome/browser/extensions/api/api_function.cc

Issue 11232066: Remove GetExtensionEventRouter from Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rerebase Created 8 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
Index: chrome/browser/extensions/api/api_function.cc
diff --git a/chrome/browser/extensions/api/api_function.cc b/chrome/browser/extensions/api/api_function.cc
index 398b1392f6feb3b6f06d6e1e5ff8a9fe96485672..0606d24e2d9e37c13a51fba0ba9edd036175c27b 100644
--- a/chrome/browser/extensions/api/api_function.cc
+++ b/chrome/browser/extensions/api/api_function.cc
@@ -6,6 +6,7 @@
#include "base/bind.h"
#include "chrome/browser/extensions/api/api_resource_event_notifier.h"
+#include "chrome/browser/extensions/extension_system.h"
#include "chrome/browser/profiles/profile.h"
using content::BrowserThread;
@@ -30,8 +31,8 @@ int ApiFunction::ExtractSrcId(const DictionaryValue* options) {
ApiResourceEventNotifier* ApiFunction::CreateEventNotifier(int src_id) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
return new ApiResourceEventNotifier(
- profile()->GetExtensionEventRouter(), profile(), extension_id(),
- src_id, source_url());
+ extensions::ExtensionSystem::Get(profile())->event_router(), profile(),
+ extension_id(), src_id, source_url());
}
// AsyncApiFunction

Powered by Google App Engine
This is Rietveld 408576698