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

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

Issue 235863025: Remove desktop auto-login since we don't plan on shipping it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove redundant comment. Created 6 years, 8 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
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 void SetCommandLineSwitchASCII(const std::string& switch_string, 28 void SetCommandLineSwitchASCII(const std::string& switch_string,
29 const std::string& value) { 29 const std::string& value) {
30 CommandLine* command_line = CommandLine::ForCurrentProcess(); 30 CommandLine* command_line = CommandLine::ForCurrentProcess();
31 if (!command_line->HasSwitch(switch_string)) 31 if (!command_line->HasSwitch(switch_string))
32 command_line->AppendSwitchASCII(switch_string, value); 32 command_line->AppendSwitchASCII(switch_string, value);
33 } 33 }
34 34
35 } // namespace 35 } // namespace
36 36
37 void SetChromeSpecificCommandLineFlags() { 37 void SetChromeSpecificCommandLineFlags() {
38 // Turn on autologin.
39 SetCommandLineSwitch(switches::kEnableAutologin);
40
41 // Enable prerender for the omnibox. 38 // Enable prerender for the omnibox.
42 SetCommandLineSwitchASCII(switches::kPrerenderMode, 39 SetCommandLineSwitchASCII(switches::kPrerenderMode,
43 switches::kPrerenderModeSwitchValueEnabled); 40 switches::kPrerenderModeSwitchValueEnabled);
44 SetCommandLineSwitchASCII(switches::kPrerenderFromOmnibox, 41 SetCommandLineSwitchASCII(switches::kPrerenderFromOmnibox,
45 switches::kPrerenderFromOmniboxSwitchValueEnabled); 42 switches::kPrerenderFromOmniboxSwitchValueEnabled);
46 43
47 // Disable syncing favicons on low end devices. 44 // Disable syncing favicons on low end devices.
48 if (base::android::SysUtils::IsLowEndDevice()) 45 if (base::android::SysUtils::IsLowEndDevice())
49 SetCommandLineSwitchASCII(switches::kDisableSyncTypes, "Favicon Images"); 46 SetCommandLineSwitchASCII(switches::kDisableSyncTypes, "Favicon Images");
50 47
51 // Enable DOM Distiller on local builds, canary and dev-channel. 48 // Enable DOM Distiller on local builds, canary and dev-channel.
52 chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel(); 49 chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel();
53 if (channel == chrome::VersionInfo::CHANNEL_UNKNOWN || 50 if (channel == chrome::VersionInfo::CHANNEL_UNKNOWN ||
54 channel == chrome::VersionInfo::CHANNEL_CANARY || 51 channel == chrome::VersionInfo::CHANNEL_CANARY ||
55 channel == chrome::VersionInfo::CHANNEL_DEV) { 52 channel == chrome::VersionInfo::CHANNEL_DEV) {
56 SetCommandLineSwitch(switches::kEnableDomDistiller); 53 SetCommandLineSwitch(switches::kEnableDomDistiller);
57 } 54 }
58 55
59 // Enable the Fast Text Autosizer on local builds, canary and dev-channel. 56 // Enable the Fast Text Autosizer on local builds, canary and dev-channel.
60 if (channel == chrome::VersionInfo::CHANNEL_UNKNOWN || 57 if (channel == chrome::VersionInfo::CHANNEL_UNKNOWN ||
61 channel == chrome::VersionInfo::CHANNEL_CANARY || 58 channel == chrome::VersionInfo::CHANNEL_CANARY ||
62 channel == chrome::VersionInfo::CHANNEL_DEV) { 59 channel == chrome::VersionInfo::CHANNEL_DEV) {
63 SetCommandLineSwitch(switches::kEnableFastTextAutosizing); 60 SetCommandLineSwitch(switches::kEnableFastTextAutosizing);
64 } 61 }
65 } 62 }
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698