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 0f35197e27cbaacbde7c35fa4d943306f4e8f3fe..b81200c3803b0a4b58d31597e443c6b892f54ffa 100644 |
--- a/chrome/renderer/plugins/chrome_plugin_placeholder.cc |
+++ b/chrome/renderer/plugins/chrome_plugin_placeholder.cc |
@@ -208,7 +208,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() |
@@ -257,6 +257,11 @@ void ChromePluginPlaceholder::OnCancelledDownloadingPlugin() { |
} |
#endif // defined(ENABLE_PLUGIN_INSTALLATION) |
+void ChromePluginPlaceholder::OnSetPrerenderMode( |
+ prerender::PrerenderMode mode) { |
+ OnSetIsPrerendering(mode != prerender::NO_PRERENDER); |
+} |
+ |
void ChromePluginPlaceholder::PluginListChanged() { |
if (!GetFrame() || !plugin()) |
return; |