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

Side by Side Diff: chrome/browser/android/chrome_startup_flags.cc

Issue 11193052: Add flags for new Autofill work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/autofill/autofill_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <jni.h> 5 #include <jni.h>
6 6
7 #include "chrome/browser/android/chrome_startup_flags.h" 7 #include "chrome/browser/android/chrome_startup_flags.h"
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
(...skipping 17 matching lines...) Expand all
28 command_line->AppendSwitchASCII(switch_string, value); 28 command_line->AppendSwitchASCII(switch_string, value);
29 } 29 }
30 30
31 } // namespace 31 } // namespace
32 32
33 void SetChromeSpecificCommandLineFlags() { 33 void SetChromeSpecificCommandLineFlags() {
34 // Always enable SPDY. 34 // Always enable SPDY.
35 SetCommandLineSwitch(switches::kEnableNpn); 35 SetCommandLineSwitch(switches::kEnableNpn);
36 36
37 // Turn on autofill. 37 // Turn on autofill.
38 SetCommandLineSwitch(switches::kExternalAutofillPopup); 38 // TODO(nileshagrawal): Remove this flag once Android stops relying on
39 // tab_contents.cc.
40 SetCommandLineSwitch(switches::kEnableNewAutofillUi);
39 41
40 // Turn on autologin. 42 // Turn on autologin.
41 SetCommandLineSwitch(switches::kEnableAutologin); 43 SetCommandLineSwitch(switches::kEnableAutologin);
42 44
43 // Enable prerender for the omnibox. 45 // Enable prerender for the omnibox.
44 SetCommandLineSwitchASCII( 46 SetCommandLineSwitchASCII(
45 switches::kPrerenderMode, switches::kPrerenderModeSwitchValueEnabled); 47 switches::kPrerenderMode, switches::kPrerenderModeSwitchValueEnabled);
46 SetCommandLineSwitchASCII( 48 SetCommandLineSwitchASCII(
47 switches::kPrerenderFromOmnibox, 49 switches::kPrerenderFromOmnibox,
48 switches::kPrerenderFromOmniboxSwitchValueEnabled); 50 switches::kPrerenderFromOmniboxSwitchValueEnabled);
49 } 51 }
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/autofill/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698