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

Unified Diff: android_webview/lib/main/aw_main_delegate.cc

Issue 2264633002: [Android] Add spellchecking support in android_webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
Index: android_webview/lib/main/aw_main_delegate.cc
diff --git a/android_webview/lib/main/aw_main_delegate.cc b/android_webview/lib/main/aw_main_delegate.cc
index 8bc2e459773d4e112a191aecdd0930e18efa89f6..9f8dd74e8eac389635a2eccf6e9ed1d3efc5b13e 100644
--- a/android_webview/lib/main/aw_main_delegate.cc
+++ b/android_webview/lib/main/aw_main_delegate.cc
@@ -32,6 +32,7 @@
#include "cc/base/switches.h"
#include "components/crash/content/app/breakpad_linux.h"
#include "components/external_video_surface/browser/android/external_video_surface_container_impl.h"
+#include "components/spellcheck/common/spellcheck_switches.h"
#include "content/public/browser/android/browser_media_player_manager_register.h"
#include "content/public/browser/browser_main_runner.h"
#include "content/public/browser/browser_thread.h"
@@ -139,6 +140,10 @@ bool AwMainDelegate::BasicStartupComplete(int* exit_code) {
cl->AppendSwitch(switches::kDisableRendererBackgrounding);
}
+#if defined(ENABLE_SPELLCHECK)
+ cl->AppendSwitch(spellcheck::switches::kEnableAndroidSpellChecker);
Tobias Sargeant 2016/08/23 14:17:58 I don't think we want to unilaterally enable this
timvolodine 2016/08/23 15:29:18 right sorry forgot to remove this after testing lo
+#endif
+
return false;
}

Powered by Google App Engine
This is Rietveld 408576698