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

Side by Side Diff: chrome/browser/prefs/chrome_command_line_pref_store.cc

Issue 2494873003: [Sync] Allow sync start without sign-in if the local sync backend is on. (Closed)
Patch Set: Remove ifdefs around include. Created 4 years 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 "chrome/browser/prefs/chrome_command_line_pref_store.h" 5 #include "chrome/browser/prefs/chrome_command_line_pref_store.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 prefs::kAllowCrossOriginAuthPrompt, true}, 76 prefs::kAllowCrossOriginAuthPrompt, true},
77 {switches::kDisablePrintPreview, prefs::kPrintPreviewDisabled, true}, 77 {switches::kDisablePrintPreview, prefs::kPrintPreviewDisabled, true},
78 #if defined(OS_CHROMEOS) 78 #if defined(OS_CHROMEOS)
79 {chromeos::switches::kEnableTouchpadThreeFingerClick, 79 {chromeos::switches::kEnableTouchpadThreeFingerClick,
80 prefs::kEnableTouchpadThreeFingerClick, true}, 80 prefs::kEnableTouchpadThreeFingerClick, true},
81 {switches::kEnableUnifiedDesktop, 81 {switches::kEnableUnifiedDesktop,
82 prefs::kUnifiedDesktopEnabledByDefault, true}, 82 prefs::kUnifiedDesktopEnabledByDefault, true},
83 #endif 83 #endif
84 {switches::kUnsafePacUrl, prefs::kPacHttpsUrlStrippingEnabled, false}, 84 {switches::kUnsafePacUrl, prefs::kPacHttpsUrlStrippingEnabled, false},
85 {switches::kEnableLocalSyncBackend, 85 {switches::kEnableLocalSyncBackend,
86 syncer::prefs::kEnableLocalSyncBackend, false}, 86 syncer::prefs::kEnableLocalSyncBackend, true},
87 }; 87 };
88 88
89 const CommandLinePrefStore::SwitchToPreferenceMapEntry 89 const CommandLinePrefStore::SwitchToPreferenceMapEntry
90 ChromeCommandLinePrefStore::integer_switch_map_[] = { 90 ChromeCommandLinePrefStore::integer_switch_map_[] = {
91 { switches::kDiskCacheSize, prefs::kDiskCacheSize }, 91 { switches::kDiskCacheSize, prefs::kDiskCacheSize },
92 { switches::kMediaCacheSize, prefs::kMediaCacheSize }, 92 { switches::kMediaCacheSize, prefs::kMediaCacheSize },
93 }; 93 };
94 94
95 ChromeCommandLinePrefStore::ChromeCommandLinePrefStore( 95 ChromeCommandLinePrefStore::ChromeCommandLinePrefStore(
96 const base::CommandLine* command_line) 96 const base::CommandLine* command_line)
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 } 167 }
168 } 168 }
169 169
170 void ChromeCommandLinePrefStore::ApplyBackgroundModeSwitches() { 170 void ChromeCommandLinePrefStore::ApplyBackgroundModeSwitches() {
171 if (command_line()->HasSwitch(switches::kDisableExtensions)) { 171 if (command_line()->HasSwitch(switches::kDisableExtensions)) {
172 SetValue(prefs::kBackgroundModeEnabled, 172 SetValue(prefs::kBackgroundModeEnabled,
173 base::MakeUnique<base::FundamentalValue>(false), 173 base::MakeUnique<base::FundamentalValue>(false),
174 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS); 174 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS);
175 } 175 }
176 } 176 }
OLDNEW
« no previous file with comments | « chrome/browser/history/web_history_service_factory.cc ('k') | chrome/browser/sync/profile_sync_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698