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

Unified Diff: chrome/browser/extensions/api/hotword_private/hotword_private_api.cc

Issue 238633009: cleanup: Use EventRouter instead of ExtensionSystem::Get->event_router() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile error for chromeos build. Created 6 years, 8 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/hotword_private/hotword_private_api.cc
diff --git a/chrome/browser/extensions/api/hotword_private/hotword_private_api.cc b/chrome/browser/extensions/api/hotword_private/hotword_private_api.cc
index 1e1c7efe0d7c58a06dd1d3bc3a89feb243115659..dc861192368ce157556006541a601de29a330bb0 100644
--- a/chrome/browser/extensions/api/hotword_private/hotword_private_api.cc
+++ b/chrome/browser/extensions/api/hotword_private/hotword_private_api.cc
@@ -11,7 +11,6 @@
#include "chrome/browser/search/hotword_service_factory.h"
#include "chrome/common/pref_names.h"
#include "extensions/browser/event_router.h"
-#include "extensions/browser/extension_system.h"
namespace extensions {
@@ -58,7 +57,7 @@ void HotwordPrivateEventService::OnEnabledChanged(
void HotwordPrivateEventService::SignalEvent() {
using OnEnabledChanged::kEventName;
- EventRouter* router = ExtensionSystem::Get(profile_)->event_router();
+ EventRouter* router = EventRouter::Get(profile_);
if (!router || !router->HasEventListener(kEventName))
return;
scoped_ptr<base::ListValue> args(new base::ListValue());
« no previous file with comments | « chrome/browser/extensions/api/history/history_api.cc ('k') | chrome/browser/extensions/api/identity/identity_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698