Index: chrome/browser/speech/extension_api/tts_engine_extension_api.cc |
diff --git a/chrome/browser/speech/extension_api/tts_engine_extension_api.cc b/chrome/browser/speech/extension_api/tts_engine_extension_api.cc |
index 7e4071f516c0efaaf735ac804938cf68cfdfdf3b..d5670808ef74643c910a1f943ba9ac6f9e0409e4 100644 |
--- a/chrome/browser/speech/extension_api/tts_engine_extension_api.cc |
+++ b/chrome/browser/speech/extension_api/tts_engine_extension_api.cc |
@@ -17,8 +17,9 @@ |
#include "chrome/browser/speech/tts_controller.h" |
#include "chrome/common/extensions/api/speech/tts_engine_manifest_handler.h" |
#include "chrome/common/extensions/extension_constants.h" |
+#include "content/public/browser/render_frame_host.h" |
#include "content/public/browser/render_process_host.h" |
-#include "content/public/browser/render_view_host.h" |
+#include "content/public/browser/web_contents.h" |
#include "content/public/common/console_message_level.h" |
#include "extensions/browser/event_router.h" |
#include "extensions/browser/extension_host.h" |
@@ -26,7 +27,6 @@ |
#include "extensions/browser/extension_system.h" |
#include "extensions/browser/process_manager.h" |
#include "extensions/common/extension.h" |
-#include "extensions/common/extension_messages.h" |
#include "extensions/common/extension_set.h" |
#include "net/base/network_change_notifier.h" |
@@ -57,10 +57,9 @@ void WarnIfMissingPauseOrResumeListener( |
extensions::ExtensionHost* host = |
extensions::ProcessManager::Get(profile) |
->GetBackgroundHostForExtension(extension_id); |
- host->render_process_host()->Send(new ExtensionMsg_AddMessageToConsole( |
- host->render_view_host()->GetRoutingID(), |
+ host->host_contents()->GetMainFrame()->AddMessageToConsole( |
content::CONSOLE_MESSAGE_LEVEL_WARNING, |
- constants::kErrorMissingPauseOrResume)); |
+ constants::kErrorMissingPauseOrResume); |
not at google - send to devlin
2015/06/19 23:14:58
Same here.
Devlin
2015/06/22 19:52:32
This one doesn't even check that the background ho
|
} |
} // namespace |