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 "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 { switches::kLang, prefs::kApplicationLocale }, | 26 { switches::kLang, prefs::kApplicationLocale }, |
27 { switches::kAuthSchemes, prefs::kAuthSchemes }, | 27 { switches::kAuthSchemes, prefs::kAuthSchemes }, |
28 { switches::kAuthServerWhitelist, prefs::kAuthServerWhitelist }, | 28 { switches::kAuthServerWhitelist, prefs::kAuthServerWhitelist }, |
29 { switches::kAuthNegotiateDelegateWhitelist, | 29 { switches::kAuthNegotiateDelegateWhitelist, |
30 prefs::kAuthNegotiateDelegateWhitelist }, | 30 prefs::kAuthNegotiateDelegateWhitelist }, |
31 { switches::kGSSAPILibraryName, prefs::kGSSAPILibraryName }, | 31 { switches::kGSSAPILibraryName, prefs::kGSSAPILibraryName }, |
32 { data_reduction_proxy::switches::kDataReductionProxy, | 32 { data_reduction_proxy::switches::kDataReductionProxy, |
33 data_reduction_proxy::prefs::kDataReductionProxy }, | 33 data_reduction_proxy::prefs::kDataReductionProxy }, |
34 { switches::kSSLVersionMin, prefs::kSSLVersionMin }, | 34 { switches::kSSLVersionMin, prefs::kSSLVersionMin }, |
35 { switches::kSSLVersionMax, prefs::kSSLVersionMax }, | 35 { switches::kSSLVersionMax, prefs::kSSLVersionMax }, |
| 36 { switches::kSSLVersionFallbackMin, prefs::kSSLVersionFallbackMin }, |
36 }; | 37 }; |
37 | 38 |
38 const CommandLinePrefStore::PathSwitchToPreferenceMapEntry | 39 const CommandLinePrefStore::PathSwitchToPreferenceMapEntry |
39 CommandLinePrefStore::path_switch_map_[] = { | 40 CommandLinePrefStore::path_switch_map_[] = { |
40 { switches::kDiskCacheDir, prefs::kDiskCacheDir }, | 41 { switches::kDiskCacheDir, prefs::kDiskCacheDir }, |
41 }; | 42 }; |
42 | 43 |
43 const CommandLinePrefStore::BooleanSwitchToPreferenceMapEntry | 44 const CommandLinePrefStore::BooleanSwitchToPreferenceMapEntry |
44 CommandLinePrefStore::boolean_switch_map_[] = { | 45 CommandLinePrefStore::boolean_switch_map_[] = { |
45 { switches::kDisableAuthNegotiateCnameLookup, | 46 { switches::kDisableAuthNegotiateCnameLookup, |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 list_value->Append(new base::StringValue(*it)); | 177 list_value->Append(new base::StringValue(*it)); |
177 } | 178 } |
178 SetValue(prefs::kCipherSuiteBlacklist, list_value); | 179 SetValue(prefs::kCipherSuiteBlacklist, list_value); |
179 } | 180 } |
180 } | 181 } |
181 | 182 |
182 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { | 183 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { |
183 if (command_line_->HasSwitch(switches::kDisableExtensions)) | 184 if (command_line_->HasSwitch(switches::kDisableExtensions)) |
184 SetValue(prefs::kBackgroundModeEnabled, new base::FundamentalValue(false)); | 185 SetValue(prefs::kBackgroundModeEnabled, new base::FundamentalValue(false)); |
185 } | 186 } |
OLD | NEW |