OLD | NEW |
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 16 matching lines...) Expand all Loading... |
27 if (!command_line->HasSwitch(switch_string)) | 27 if (!command_line->HasSwitch(switch_string)) |
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. | |
38 SetCommandLineSwitch(switches::kExternalAutofillPopup); | |
39 | |
40 // Turn on autologin. | 37 // Turn on autologin. |
41 SetCommandLineSwitch(switches::kEnableAutologin); | 38 SetCommandLineSwitch(switches::kEnableAutologin); |
42 | 39 |
43 // Enable prerender for the omnibox. | 40 // Enable prerender for the omnibox. |
44 SetCommandLineSwitchASCII( | 41 SetCommandLineSwitchASCII( |
45 switches::kPrerenderMode, switches::kPrerenderModeSwitchValueEnabled); | 42 switches::kPrerenderMode, switches::kPrerenderModeSwitchValueEnabled); |
46 SetCommandLineSwitchASCII( | 43 SetCommandLineSwitchASCII( |
47 switches::kPrerenderFromOmnibox, | 44 switches::kPrerenderFromOmnibox, |
48 switches::kPrerenderFromOmniboxSwitchValueEnabled); | 45 switches::kPrerenderFromOmniboxSwitchValueEnabled); |
49 } | 46 } |
OLD | NEW |