| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |