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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 1230933002: Patch 3.1: Refactored spellcheck_message_filter to be generic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@platform_flag
Patch Set: Updated gn build variable to match gyp side Created 5 years, 5 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 | « build/config/features.gni ('k') | chrome/browser/spellchecker/spellcheck_message_filter_mac.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 e00b5e1b2fb8fe296a50d01d6b1c59948ab05d19..fdc75557888ac039dc52e96c345457b2e485398a 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -150,7 +150,6 @@
#include "sandbox/win/src/sandbox_policy.h"
#elif defined(OS_MACOSX)
#include "chrome/browser/chrome_browser_main_mac.h"
-#include "chrome/browser/spellchecker/spellcheck_message_filter_mac.h"
#elif defined(OS_CHROMEOS)
#include "chrome/browser/chromeos/attestation/platform_verification_impl.h"
#include "chrome/browser/chromeos/chrome_browser_main_chromeos.h"
@@ -247,6 +246,10 @@
#include "chrome/browser/spellchecker/spellcheck_message_filter.h"
#endif
+#if defined(USE_PLATFORM_SPELLCHECKER)
+#include "chrome/browser/spellchecker/spellcheck_message_filter_platform.h"
+#endif
+
#if defined(ENABLE_WEBRTC)
#include "chrome/browser/media/webrtc_logging_handler_host.h"
#endif
@@ -841,8 +844,8 @@ void ChromeContentBrowserClient::RenderProcessWillLaunch(
#if defined(ENABLE_SPELLCHECK)
host->AddFilter(new SpellCheckMessageFilter(id));
#endif
-#if defined(OS_MACOSX)
- host->AddFilter(new SpellCheckMessageFilterMac(id));
+#if defined(USE_PLATFORM_SPELLCHECKER)
+ host->AddFilter(new SpellCheckMessageFilterPlatform(id));
#endif
host->AddFilter(new ChromeNetBenchmarkingMessageFilter(profile, context));
host->AddFilter(new prerender::PrerenderMessageFilter(id, profile));
« no previous file with comments | « build/config/features.gni ('k') | chrome/browser/spellchecker/spellcheck_message_filter_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698