Index: chrome/renderer/plugins/chrome_plugin_placeholder.cc |
diff --git a/chrome/renderer/plugins/chrome_plugin_placeholder.cc b/chrome/renderer/plugins/chrome_plugin_placeholder.cc |
index 03fc57abe7e0fc2cfd153b7fe8f2f44e4a7961b5..200de445f44c28d22efe190cdb84a4393806de8d 100644 |
--- a/chrome/renderer/plugins/chrome_plugin_placeholder.cc |
+++ b/chrome/renderer/plugins/chrome_plugin_placeholder.cc |
@@ -212,7 +212,7 @@ bool ChromePluginPlaceholder::OnMessageReceived(const IPC::Message& message) { |
// We don't swallow these messages because multiple blocked plugins and other |
// objects have an interest in them. |
IPC_BEGIN_MESSAGE_MAP(ChromePluginPlaceholder, message) |
- IPC_MESSAGE_HANDLER(PrerenderMsg_SetIsPrerendering, OnSetIsPrerendering) |
+ IPC_MESSAGE_HANDLER(PrerenderMsg_SetIsPrerendering, OnSetPrerenderMode) |
IPC_MESSAGE_HANDLER(ChromeViewMsg_LoadBlockedPlugins, OnLoadBlockedPlugins) |
IPC_END_MESSAGE_MAP() |
@@ -274,6 +274,11 @@ void ChromePluginPlaceholder::OnPluginComponentUpdateFailure() { |
plugin_name_)); |
} |
+void ChromePluginPlaceholder::OnSetPrerenderMode( |
+ prerender::PrerenderMode mode) { |
+ OnSetIsPrerendering(mode != prerender::NO_PRERENDER); |
+} |
+ |
void ChromePluginPlaceholder::PluginListChanged() { |
if (!GetFrame() || !plugin()) |
return; |