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

Unified Diff: chrome/renderer/chrome_render_process_observer.cc

Issue 23926008: [rAC, OSX] enable rAC by default for Dev/Canary. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_render_process_observer.cc
diff --git a/chrome/renderer/chrome_render_process_observer.cc b/chrome/renderer/chrome_render_process_observer.cc
index 22fdc0ffbe03361476484f8b9837c3a66a834deb..6906adb6b9b42aea5679a65ce76ac21b3b0f1fd6 100644
--- a/chrome/renderer/chrome_render_process_observer.cc
+++ b/chrome/renderer/chrome_render_process_observer.cc
@@ -269,8 +269,17 @@ ChromeRenderProcessObserver::ChromeRenderProcessObserver(
#if defined(ENABLE_AUTOFILL_DIALOG)
#if defined(OS_MACOSX)
+ // Interactive autocomplete is on by default for Dev/Canary, off by default
+ // for Beta/Stable.
bool enableAutofill = command_line.HasSwitch(
autofill::switches::kEnableInteractiveAutocomplete);
+
+ chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel();
+ if (channel != chrome::VersionInfo::CHANNEL_BETA &&
+ channel != chrome::VersionInfo::CHANNEL_STABLE) {
+ enableAutofill = !command_line.HasSwitch(
+ autofill::switches::kDisableInteractiveAutocomplete);
+ }
#else
bool enableAutofill = !command_line.HasSwitch(
autofill::switches::kDisableInteractiveAutocomplete);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698