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

Unified Diff: chrome/browser/ui/tab_contents/tab_contents.cc

Issue 11193052: Add flags for new Autofill work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | « chrome/browser/autofill/autofill_manager_unittest.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/tab_contents/tab_contents.cc
diff --git a/chrome/browser/ui/tab_contents/tab_contents.cc b/chrome/browser/ui/tab_contents/tab_contents.cc
index 4b683349122d2251df0ad102f098d406e43f692b..367dbba0894b022ef87989c6bde5a47dd2f6855c 100644
--- a/chrome/browser/ui/tab_contents/tab_contents.cc
+++ b/chrome/browser/ui/tab_contents/tab_contents.cc
@@ -117,8 +117,13 @@ TabContents::TabContents(WebContents* contents)
TabAutofillManagerDelegate::CreateForWebContents(contents);
AutofillManager::CreateForWebContentsAndDelegate(
contents, TabAutofillManagerDelegate::FromWebContents(contents));
+#if !defined(OS_ANDROID)
Albert Bodenhamer 2012/10/19 16:46:52 Wrapping an if() in a conditional compile like thi
joth 2012/10/19 22:04:06 Android is just about to stop using tab_contents.c
Ilya Sherman 2012/10/19 22:16:26 Given joth's comment, I've left the code in androi
if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kExternalAutofillPopup)) {
+ switches::kEnableNewAutofillUi)) {
+#else
+ // Always enable the external popup on Android.
+ if (true) {
+#endif
AutofillExternalDelegate::CreateForWebContentsAndManager(
contents, AutofillManager::FromWebContents(contents));
AutofillManager::FromWebContents(contents)->SetExternalDelegate(
« no previous file with comments | « chrome/browser/autofill/autofill_manager_unittest.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698