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); |