| 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 <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ash/ash_switches.h" | 10 #include "ash/ash_switches.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 const CommandLinePrefStore::StringSwitchToPreferenceMapEntry | 26 const CommandLinePrefStore::StringSwitchToPreferenceMapEntry |
| 27 CommandLinePrefStore::string_switch_map_[] = { | 27 CommandLinePrefStore::string_switch_map_[] = { |
| 28 { switches::kLang, prefs::kApplicationLocale }, | 28 { switches::kLang, prefs::kApplicationLocale }, |
| 29 { data_reduction_proxy::switches::kDataReductionProxy, | 29 { data_reduction_proxy::switches::kDataReductionProxy, |
| 30 data_reduction_proxy::prefs::kDataReductionProxy }, | 30 data_reduction_proxy::prefs::kDataReductionProxy }, |
| 31 { switches::kAuthServerWhitelist, prefs::kAuthServerWhitelist }, | 31 { switches::kAuthServerWhitelist, prefs::kAuthServerWhitelist }, |
| 32 { switches::kSSLVersionMin, prefs::kSSLVersionMin }, | 32 { switches::kSSLVersionMin, prefs::kSSLVersionMin }, |
| 33 { switches::kSSLVersionMax, prefs::kSSLVersionMax }, | 33 { switches::kSSLVersionMax, prefs::kSSLVersionMax }, |
| 34 { switches::kSSLVersionFallbackMin, prefs::kSSLVersionFallbackMin }, | 34 { switches::kSSLVersionFallbackMin, prefs::kSSLVersionFallbackMin }, |
| 35 { switches::kPrintPreviewDefaultDestinationSelectionRules, |
| 36 prefs::kPrintPreviewDefaultDestinationSelectionRules }, |
| 35 #if defined(OS_ANDROID) | 37 #if defined(OS_ANDROID) |
| 36 { switches::kAuthAndroidNegotiateAccountType, | 38 { switches::kAuthAndroidNegotiateAccountType, |
| 37 prefs::kAuthAndroidNegotiateAccountType }, | 39 prefs::kAuthAndroidNegotiateAccountType }, |
| 38 #endif | 40 #endif |
| 39 }; | 41 }; |
| 40 | 42 |
| 41 const CommandLinePrefStore::PathSwitchToPreferenceMapEntry | 43 const CommandLinePrefStore::PathSwitchToPreferenceMapEntry |
| 42 CommandLinePrefStore::path_switch_map_[] = { | 44 CommandLinePrefStore::path_switch_map_[] = { |
| 43 { switches::kDiskCacheDir, prefs::kDiskCacheDir }, | 45 { switches::kDiskCacheDir, prefs::kDiskCacheDir }, |
| 44 }; | 46 }; |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 } | 191 } |
| 190 } | 192 } |
| 191 | 193 |
| 192 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { | 194 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { |
| 193 if (command_line_->HasSwitch(switches::kDisableExtensions)) { | 195 if (command_line_->HasSwitch(switches::kDisableExtensions)) { |
| 194 SetValue(prefs::kBackgroundModeEnabled, | 196 SetValue(prefs::kBackgroundModeEnabled, |
| 195 make_scoped_ptr(new base::FundamentalValue(false)), | 197 make_scoped_ptr(new base::FundamentalValue(false)), |
| 196 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS); | 198 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS); |
| 197 } | 199 } |
| 198 } | 200 } |
| OLD | NEW |