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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 306233002: Split most extensions bits in ChromeRenderMessageFilter into ChromeExtensionMessageFilter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 months 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 | « no previous file | chrome/browser/renderer_host/chrome_extension_message_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 573d1c89b11c723cd20ccd66e53480f9dc6b6d0f..74c35743386656dfd77135014605122e13e0f8ee 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -192,13 +192,11 @@
#include "components/breakpad/browser/crash_handler_host_linux.h"
#endif
-#if defined(ENABLE_CAPTIVE_PORTAL_DETECTION)
-#include "chrome/browser/captive_portal/captive_portal_tab_helper.h"
-#endif
-
#if defined(OS_ANDROID)
#include "ui/base/ui_base_paths.h"
#include "ui/gfx/android/device_display_info.h"
+#else
+#include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h"
#endif
#if !defined(OS_CHROMEOS)
@@ -208,14 +206,6 @@
#include "components/signin/core/browser/signin_manager.h"
#endif
-#if !defined(OS_ANDROID)
-#include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h"
-#endif
-
-#if defined(ENABLE_WEBRTC)
-#include "chrome/browser/media/webrtc_logging_handler_host.h"
-#endif
-
#if defined(OS_CHROMEOS)
#include "chrome/browser/chromeos/file_manager/app_id.h"
#endif
@@ -236,6 +226,14 @@
#include "chrome/browser/chrome_browser_main_extra_parts_x11.h"
#endif
+#if defined(ENABLE_CAPTIVE_PORTAL_DETECTION)
+#include "chrome/browser/captive_portal/captive_portal_tab_helper.h"
+#endif
+
+#if defined(ENABLE_EXTENSIONS)
+#include "chrome/browser/renderer_host/chrome_extension_message_filter.h"
+#endif
+
#if defined(ENABLE_SPELLCHECK)
#include "chrome/browser/spellchecker/spellcheck_message_filter.h"
#endif
@@ -244,6 +242,10 @@
#include "chrome/browser/local_discovery/storage/privet_filesystem_backend.h"
#endif
+#if defined(ENABLE_WEBRTC)
+#include "chrome/browser/media/webrtc_logging_handler_host.h"
+#endif
+
using blink::WebWindowFeatures;
using base::FileDescriptor;
using content::AccessTokenStore;
@@ -899,8 +901,11 @@ void ChromeContentBrowserClient::RenderProcessWillLaunch(
net::URLRequestContextGetter* context =
profile->GetRequestContextForRenderProcess(id);
- host->AddFilter(new ChromeRenderMessageFilter(id, profile, context));
+ host->AddFilter(new ChromeRenderMessageFilter(id, profile));
+#if defined(ENABLE_EXTENSIONS)
+ host->AddFilter(new ChromeExtensionMessageFilter(id, profile));
host->AddFilter(new extensions::ExtensionMessageFilter(id, profile));
+#endif
#if defined(ENABLE_PLUGINS)
host->AddFilter(new PluginInfoMessageFilter(id, profile));
#endif
« no previous file with comments | « no previous file | chrome/browser/renderer_host/chrome_extension_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698