| 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 24 matching lines...) Expand all Loading... |
| 35 #endif | 35 #endif |
| 36 | 36 |
| 37 const CommandLinePrefStore::StringSwitchToPreferenceMapEntry | 37 const CommandLinePrefStore::StringSwitchToPreferenceMapEntry |
| 38 CommandLinePrefStore::string_switch_map_[] = { | 38 CommandLinePrefStore::string_switch_map_[] = { |
| 39 { switches::kLang, prefs::kApplicationLocale }, | 39 { switches::kLang, prefs::kApplicationLocale }, |
| 40 { data_reduction_proxy::switches::kDataReductionProxy, | 40 { data_reduction_proxy::switches::kDataReductionProxy, |
| 41 data_reduction_proxy::prefs::kDataReductionProxy }, | 41 data_reduction_proxy::prefs::kDataReductionProxy }, |
| 42 { switches::kAuthServerWhitelist, prefs::kAuthServerWhitelist }, | 42 { switches::kAuthServerWhitelist, prefs::kAuthServerWhitelist }, |
| 43 { switches::kSSLVersionMin, ssl_config::prefs::kSSLVersionMin }, | 43 { switches::kSSLVersionMin, ssl_config::prefs::kSSLVersionMin }, |
| 44 { switches::kSSLVersionMax, ssl_config::prefs::kSSLVersionMax }, | 44 { switches::kSSLVersionMax, ssl_config::prefs::kSSLVersionMax }, |
| 45 { switches::kSSLVersionFallbackMin, | |
| 46 ssl_config::prefs::kSSLVersionFallbackMin }, | |
| 47 #if defined(OS_ANDROID) | 45 #if defined(OS_ANDROID) |
| 48 { switches::kAuthAndroidNegotiateAccountType, | 46 { switches::kAuthAndroidNegotiateAccountType, |
| 49 prefs::kAuthAndroidNegotiateAccountType }, | 47 prefs::kAuthAndroidNegotiateAccountType }, |
| 50 #endif | 48 #endif |
| 51 }; | 49 }; |
| 52 | 50 |
| 53 const CommandLinePrefStore::PathSwitchToPreferenceMapEntry | 51 const CommandLinePrefStore::PathSwitchToPreferenceMapEntry |
| 54 CommandLinePrefStore::path_switch_map_[] = { | 52 CommandLinePrefStore::path_switch_map_[] = { |
| 55 { switches::kDiskCacheDir, prefs::kDiskCacheDir }, | 53 { switches::kDiskCacheDir, prefs::kDiskCacheDir }, |
| 56 }; | 54 }; |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 } | 200 } |
| 203 } | 201 } |
| 204 | 202 |
| 205 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { | 203 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { |
| 206 if (command_line_->HasSwitch(switches::kDisableExtensions)) { | 204 if (command_line_->HasSwitch(switches::kDisableExtensions)) { |
| 207 SetValue(prefs::kBackgroundModeEnabled, | 205 SetValue(prefs::kBackgroundModeEnabled, |
| 208 base::WrapUnique(new base::FundamentalValue(false)), | 206 base::WrapUnique(new base::FundamentalValue(false)), |
| 209 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS); | 207 WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS); |
| 210 } | 208 } |
| 211 } | 209 } |
| OLD | NEW |