Chromium Code Reviews| Index: content/browser/web_contents/web_contents_impl.cc |
| diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
| index 7ce5ac24f15e3af3258d8dbdd18c69eaf6017762..fe1f367c23944475d8f5c55c9d27af2e38867916 100644 |
| --- a/content/browser/web_contents/web_contents_impl.cc |
| +++ b/content/browser/web_contents/web_contents_impl.cc |
| @@ -495,8 +495,10 @@ bool WebContentsImpl::OnMessageReceived(RenderViewHost* render_view_host, |
| bool handled = true; |
| IPC_BEGIN_MESSAGE_MAP(WebContentsImpl, message) |
| +#if defined(ENABLE_PLUGINS) |
|
Lei Zhang
2014/10/30 21:48:54
There's already another ENABLE_PLUGINS section bel
tommycli
2014/10/30 22:37:21
Done.
|
| IPC_MESSAGE_HANDLER(FrameHostMsg_PepperPluginHung, OnPepperPluginHung) |
| IPC_MESSAGE_HANDLER(FrameHostMsg_PluginCrashed, OnPluginCrashed) |
| +#endif |
| IPC_MESSAGE_HANDLER(FrameHostMsg_DomOperationResponse, |
| OnDomOperationResponse) |
| IPC_MESSAGE_HANDLER(FrameHostMsg_DidChangeThemeColor, |
| @@ -2887,9 +2889,9 @@ void WebContentsImpl::OnOpenDateTimeDialog( |
| value.step, |
| value.suggestions); |
| } |
| - |
| #endif |
| +#if defined(ENABLE_PLUGINS) |
| void WebContentsImpl::OnPepperPluginHung(int plugin_child_id, |
| const base::FilePath& path, |
| bool is_hung) { |
| @@ -2905,6 +2907,8 @@ void WebContentsImpl::OnPluginCrashed(const base::FilePath& plugin_path, |
| PluginCrashed(plugin_path, plugin_pid)); |
| } |
| +#endif // defined(ENABLE_PLUGINS) |
| + |
| void WebContentsImpl::OnDomOperationResponse(const std::string& json_string, |
| int automation_id) { |
| DomOperationNotificationDetails details(json_string, automation_id); |
| @@ -2996,7 +3000,7 @@ void WebContentsImpl::OnBrowserPluginMessage(const IPC::Message& message) { |
| browser_plugin_embedder_.reset(BrowserPluginEmbedder::Create(this)); |
| browser_plugin_embedder_->OnMessageReceived(message); |
| } |
| -#endif |
| +#endif // defined(ENABLE_PLUGINS) |
| void WebContentsImpl::OnDidDownloadImage( |
| int id, |