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

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

Issue 1408003010: [sync] Componentize switches used by ProfileSyncService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@more_pss_chrome_deps
Patch Set: Rebase Created 5 years, 1 month 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 | « chrome/browser/about_flags.cc ('k') | chrome/browser/chromeos/chrome_browser_main_chromeos.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"
11 #include "base/android/scoped_java_ref.h" 11 #include "base/android/scoped_java_ref.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/sys_info.h" 14 #include "base/sys_info.h"
15 #include "chrome/common/channel_info.h" 15 #include "chrome/common/channel_info.h"
16 #include "chrome/common/chrome_switches.h" 16 #include "chrome/common/chrome_switches.h"
17 #include "components/browser_sync/common/browser_sync_switches.h"
17 #include "components/dom_distiller/core/dom_distiller_switches.h" 18 #include "components/dom_distiller/core/dom_distiller_switches.h"
18 #include "media/base/media_switches.h" 19 #include "media/base/media_switches.h"
19 20
20 namespace { 21 namespace {
21 22
22 void SetCommandLineSwitch(const std::string& switch_string) { 23 void SetCommandLineSwitch(const std::string& switch_string) {
23 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 24 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
24 if (!command_line->HasSwitch(switch_string)) 25 if (!command_line->HasSwitch(switch_string))
25 command_line->AppendSwitch(switch_string); 26 command_line->AppendSwitch(switch_string);
26 } 27 }
(...skipping 12 matching lines...) Expand all
39 SetCommandLineSwitchASCII(switches::kPrerenderFromOmnibox, 40 SetCommandLineSwitchASCII(switches::kPrerenderFromOmnibox,
40 switches::kPrerenderFromOmniboxSwitchValueEnabled); 41 switches::kPrerenderFromOmniboxSwitchValueEnabled);
41 42
42 // Disable syncing favicons on low end devices. 43 // Disable syncing favicons on low end devices.
43 if (base::SysInfo::IsLowEndDevice()) 44 if (base::SysInfo::IsLowEndDevice())
44 SetCommandLineSwitchASCII(switches::kDisableSyncTypes, "Favicon Images"); 45 SetCommandLineSwitchASCII(switches::kDisableSyncTypes, "Favicon Images");
45 46
46 // Enable DOM Distiller backend. 47 // Enable DOM Distiller backend.
47 SetCommandLineSwitch(switches::kEnableDomDistiller); 48 SetCommandLineSwitch(switches::kEnableDomDistiller);
48 } 49 }
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/chromeos/chrome_browser_main_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698