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

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

Issue 1048723003: [Cleanup] Remove the obsolete Prerender field trial. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove obsolete browser tests Created 5 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
« no previous file with comments | « no previous file | chrome/browser/prerender/prerender_browsertest.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 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 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 30 base::CommandLine* command_line = base::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 // Enable prerender with holdback.
39 SetCommandLineSwitchASCII(switches::kPrerenderMode,
40 switches::kPrerenderModeSwitchValueAuto);
41
42 // Enable prerender for the omnibox. 38 // Enable prerender for the omnibox.
43 SetCommandLineSwitchASCII(switches::kPrerenderFromOmnibox, 39 SetCommandLineSwitchASCII(switches::kPrerenderFromOmnibox,
44 switches::kPrerenderFromOmniboxSwitchValueEnabled); 40 switches::kPrerenderFromOmniboxSwitchValueEnabled);
45 41
46 // Disable syncing favicons on low end devices. 42 // Disable syncing favicons on low end devices.
47 if (base::SysInfo::IsLowEndDevice()) 43 if (base::SysInfo::IsLowEndDevice())
48 SetCommandLineSwitchASCII(switches::kDisableSyncTypes, "Favicon Images"); 44 SetCommandLineSwitchASCII(switches::kDisableSyncTypes, "Favicon Images");
49 45
50 // Enable DOM Distiller backend. 46 // Enable DOM Distiller backend.
51 SetCommandLineSwitch(switches::kEnableDomDistiller); 47 SetCommandLineSwitch(switches::kEnableDomDistiller);
52 } 48 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/prerender/prerender_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698