summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorgroby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-07 21:38:38 +0000
committergroby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-07 21:38:38 +0000
commitc2ecbcfc97d3dcff53bf056c5551b141fd66c5cc (patch)
treea0df95ffe553df8a60b73b1ed877f198e02480eb /chrome/renderer
parent85740800e08ce3d90aecca28e950fa47c28bc50c (diff)
downloadchromium_src-c2ecbcfc97d3dcff53bf056c5551b141fd66c5cc.zip
chromium_src-c2ecbcfc97d3dcff53bf056c5551b141fd66c5cc.tar.gz
chromium_src-c2ecbcfc97d3dcff53bf056c5551b141fd66c5cc.tar.bz2
[rAC, OSX] Enable requestAutocomplet for OSX
Turns on requestAutocomplete behind a flag for OSX. Other implementations are still on by default. (OSX will be on by default when the UI has parity) BUG=157274 Review URL: https://chromiumcodereview.appspot.com/12662017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204936 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/chrome_render_process_observer.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/chrome/renderer/chrome_render_process_observer.cc b/chrome/renderer/chrome_render_process_observer.cc
index a9020d6..4b6a171 100644
--- a/chrome/renderer/chrome_render_process_observer.cc
+++ b/chrome/renderer/chrome_render_process_observer.cc
@@ -165,9 +165,15 @@ ChromeRenderProcessObserver::ChromeRenderProcessObserver(
}
#if defined(ENABLE_AUTOFILL_DIALOG)
+#if defined(OS_MACOSX)
+ bool enableAutofill = command_line.HasSwitch(
+ autofill::switches::kEnableInteractiveAutocomplete);
+#else
+ bool enableAutofill = !command_line.HasSwitch(
+ autofill::switches::kDisableInteractiveAutocomplete);
+#endif
WebRuntimeFeatures::enableRequestAutocomplete(
- !command_line.HasSwitch(
- autofill::switches::kDisableInteractiveAutocomplete) ||
+ enableAutofill ||
command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures));
#endif