| 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 18 matching lines...) Expand all Loading... |
| 29 if (!command_line->HasSwitch(switch_string)) | 29 if (!command_line->HasSwitch(switch_string)) |
| 30 command_line->AppendSwitchASCII(switch_string, value); | 30 command_line->AppendSwitchASCII(switch_string, value); |
| 31 } | 31 } |
| 32 | 32 |
| 33 } // namespace | 33 } // namespace |
| 34 | 34 |
| 35 void SetChromeSpecificCommandLineFlags() { | 35 void SetChromeSpecificCommandLineFlags() { |
| 36 // Turn on autologin. | 36 // Turn on autologin. |
| 37 SetCommandLineSwitch(switches::kEnableAutologin); | 37 SetCommandLineSwitch(switches::kEnableAutologin); |
| 38 | 38 |
| 39 // Use ClientLogin token on android. |
| 40 // TODO(pavely): Remove once sync on android uses oauth2 tokens. |
| 41 SetCommandLineSwitch(switches::kSyncDisableOAuth2Token); |
| 42 |
| 39 // Enable prerender for the omnibox. | 43 // Enable prerender for the omnibox. |
| 40 SetCommandLineSwitchASCII( | 44 SetCommandLineSwitchASCII( |
| 41 switches::kPrerenderMode, switches::kPrerenderModeSwitchValueEnabled); | 45 switches::kPrerenderMode, switches::kPrerenderModeSwitchValueEnabled); |
| 42 SetCommandLineSwitchASCII( | 46 SetCommandLineSwitchASCII( |
| 43 switches::kPrerenderFromOmnibox, | 47 switches::kPrerenderFromOmnibox, |
| 44 switches::kPrerenderFromOmniboxSwitchValueEnabled); | 48 switches::kPrerenderFromOmniboxSwitchValueEnabled); |
| 45 #if defined(GOOGLE_TV) | 49 #if defined(GOOGLE_TV) |
| 46 SetCommandLineSwitch(switches::kPpapiInProcess); | 50 SetCommandLineSwitch(switches::kPpapiInProcess); |
| 47 #endif | 51 #endif |
| 48 } | 52 } |
| OLD | NEW |