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

Unified Diff: chrome/browser/speech/speech_input_extension_manager.cc

Issue 11440004: Remove deprecated extension EventRouter APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile Created 8 years 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 | « chrome/browser/speech/extension_api/tts_extension_api_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 282093729b480101c6578ab94e5b3a8f8b2079a3..a5cbd059c18b870ed9caae3ec08bf32adc236ca4 100644
--- a/chrome/browser/speech/speech_input_extension_manager.cc
+++ b/chrome/browser/speech/speech_input_extension_manager.cc
@@ -453,7 +453,7 @@ void SpeechInputExtensionManager::OnSoundEnd(int session_id) {
}
void SpeechInputExtensionManager::DispatchEventToExtension(
- const std::string& extension_id, const std::string& event,
+ const std::string& extension_id, const std::string& event_name,
scoped_ptr<ListValue> event_args) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
@@ -462,9 +462,11 @@ void SpeechInputExtensionManager::DispatchEventToExtension(
return;
if (profile_ && extensions::ExtensionSystem::Get(profile_)->event_router()) {
+ scoped_ptr<extensions::Event> event(new extensions::Event(
+ event_name, event_args.Pass()));
+ event->restrict_to_profile = profile_;
extensions::ExtensionSystem::Get(profile_)->event_router()->
- DispatchEventToExtension(extension_id, event, event_args.Pass(),
- profile_, GURL());
+ DispatchEventToExtension(extension_id, event.Pass());
}
}
« no previous file with comments | « chrome/browser/speech/extension_api/tts_extension_api_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698