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

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

Issue 182253004: Remove desktop auto-login since we don't plan on shipping it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactor classes into one Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
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 16 matching lines...) Expand all
27 void SetCommandLineSwitchASCII(const std::string& switch_string, 27 void SetCommandLineSwitchASCII(const std::string& switch_string,
28 const std::string& value) { 28 const std::string& value) {
29 CommandLine* command_line = CommandLine::ForCurrentProcess(); 29 CommandLine* command_line = CommandLine::ForCurrentProcess();
30 if (!command_line->HasSwitch(switch_string)) 30 if (!command_line->HasSwitch(switch_string))
31 command_line->AppendSwitchASCII(switch_string, value); 31 command_line->AppendSwitchASCII(switch_string, value);
32 } 32 }
33 33
34 } // namespace 34 } // namespace
35 35
36 void SetChromeSpecificCommandLineFlags() { 36 void SetChromeSpecificCommandLineFlags() {
37 // Turn on autologin.
38 SetCommandLineSwitch(switches::kEnableAutologin);
39
40 // Enable prerender for the omnibox. 37 // Enable prerender for the omnibox.
41 SetCommandLineSwitchASCII( 38 SetCommandLineSwitchASCII(
42 switches::kPrerenderMode, switches::kPrerenderModeSwitchValueEnabled); 39 switches::kPrerenderMode, switches::kPrerenderModeSwitchValueEnabled);
43 SetCommandLineSwitchASCII( 40 SetCommandLineSwitchASCII(
44 switches::kPrerenderFromOmnibox, 41 switches::kPrerenderFromOmnibox,
45 switches::kPrerenderFromOmniboxSwitchValueEnabled); 42 switches::kPrerenderFromOmniboxSwitchValueEnabled);
46 if (base::android::SysUtils::IsLowEndDevice()) 43 if (base::android::SysUtils::IsLowEndDevice())
47 SetCommandLineSwitch(switches::kDisableSyncFavicons); 44 SetCommandLineSwitch(switches::kDisableSyncFavicons);
48 } 45 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698