| 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/command_line_pref_store.h" | 5 #include "chrome/browser/prefs/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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 { switches::kAllowCrossOriginAuthPrompt, | 72 { switches::kAllowCrossOriginAuthPrompt, |
| 73 prefs::kAllowCrossOriginAuthPrompt, true }, | 73 prefs::kAllowCrossOriginAuthPrompt, true }, |
| 74 { switches::kDisablePrintPreview, prefs::kPrintPreviewDisabled, true }, | 74 { switches::kDisablePrintPreview, prefs::kPrintPreviewDisabled, true }, |
| 75 #if defined(OS_CHROMEOS) | 75 #if defined(OS_CHROMEOS) |
| 76 { chromeos::switches::kEnableTouchpadThreeFingerClick, | 76 { chromeos::switches::kEnableTouchpadThreeFingerClick, |
| 77 prefs::kEnableTouchpadThreeFingerClick, true }, | 77 prefs::kEnableTouchpadThreeFingerClick, true }, |
| 78 { ash::switches::kAshEnableUnifiedDesktop, | 78 { ash::switches::kAshEnableUnifiedDesktop, |
| 79 prefs::kUnifiedDesktopEnabledByDefault, true }, | 79 prefs::kUnifiedDesktopEnabledByDefault, true }, |
| 80 #endif | 80 #endif |
| 81 { switches::kDisableAsyncDns, prefs::kBuiltInDnsClientEnabled, false }, | 81 { switches::kDisableAsyncDns, prefs::kBuiltInDnsClientEnabled, false }, |
| 82 { switches::kUnsafePacUrl, prefs::kPacHttpsUrlStrippingEnabled, false }, |
| 82 }; | 83 }; |
| 83 | 84 |
| 84 const CommandLinePrefStore::IntegerSwitchToPreferenceMapEntry | 85 const CommandLinePrefStore::IntegerSwitchToPreferenceMapEntry |
| 85 CommandLinePrefStore::integer_switch_map_[] = { | 86 CommandLinePrefStore::integer_switch_map_[] = { |
| 86 { switches::kDiskCacheSize, prefs::kDiskCacheSize }, | 87 { switches::kDiskCacheSize, prefs::kDiskCacheSize }, |
| 87 { switches::kMediaCacheSize, prefs::kMediaCacheSize }, | 88 { switches::kMediaCacheSize, prefs::kMediaCacheSize }, |
| 88 }; | 89 }; |
| 89 | 90 |
| 90 CommandLinePrefStore::CommandLinePrefStore( | 91 CommandLinePrefStore::CommandLinePrefStore( |
| 91 const base::CommandLine* command_line) | 92 const base::CommandLine* command_line) |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 } | 202 } |
| 202 } | 203 } |
| 203 | 204 |
| 204 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { | 205 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { |
| 205 if (command_line_->HasSwitch(switches::kDisableExtensions)) { | 206 if (command_line_->HasSwitch(switches::kDisableExtensions)) { |
| 206 SetValue(prefs::kBackgroundModeEnabled, | 207 SetValue(prefs::kBackgroundModeEnabled, |
| 207 base::WrapUnique(new base::FundamentalValue(false)), | 208 base::WrapUnique(new base::FundamentalValue(false)), |
| 208 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS); | 209 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS); |
| 209 } | 210 } |
| 210 } | 211 } |
| OLD | NEW |