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

Unified Diff: chrome/browser/speech/speech_input_extension_manager.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/speech/speech_input_extension_manager.cc
diff --git a/chrome/browser/speech/speech_input_extension_manager.cc b/chrome/browser/speech/speech_input_extension_manager.cc
index be71bc00e04bbb8ed4c34577664b418eabb64394..476698dd958cb13b1b76d84c97ecb408688b206d 100644
--- a/chrome/browser/speech/speech_input_extension_manager.cc
+++ b/chrome/browser/speech/speech_input_extension_manager.cc
@@ -456,9 +456,10 @@ void SpeechInputExtensionManager::DispatchEventToExtension(
if (state_ == kShutdown)
return;
- if (profile_ && profile_->GetExtensionEventRouter()) {
- profile_->GetExtensionEventRouter()->DispatchEventToExtension(
- extension_id, event, event_args.Pass(), profile_, GURL());
+ if (profile_ && extensions::ExtensionSystem::Get(profile_)->event_router()) {
+ extensions::ExtensionSystem::Get(profile_)->event_router()->
+ DispatchEventToExtension(extension_id, event, event_args.Pass(),
+ profile_, GURL());
}
}
« no previous file with comments | « chrome/browser/speech/extension_api/tts_extension_api_controller.cc ('k') | chrome/test/base/testing_profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698