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 25 matching lines...) Expand all Loading... |
36 { switches::kSSLVersionFallbackMin, prefs::kSSLVersionFallbackMin }, | 36 { switches::kSSLVersionFallbackMin, prefs::kSSLVersionFallbackMin }, |
37 }; | 37 }; |
38 | 38 |
39 const CommandLinePrefStore::PathSwitchToPreferenceMapEntry | 39 const CommandLinePrefStore::PathSwitchToPreferenceMapEntry |
40 CommandLinePrefStore::path_switch_map_[] = { | 40 CommandLinePrefStore::path_switch_map_[] = { |
41 { switches::kDiskCacheDir, prefs::kDiskCacheDir }, | 41 { switches::kDiskCacheDir, prefs::kDiskCacheDir }, |
42 }; | 42 }; |
43 | 43 |
44 const CommandLinePrefStore::BooleanSwitchToPreferenceMapEntry | 44 const CommandLinePrefStore::BooleanSwitchToPreferenceMapEntry |
45 CommandLinePrefStore::boolean_switch_map_[] = { | 45 CommandLinePrefStore::boolean_switch_map_[] = { |
46 { switches::kDisableAuthNegotiateCnameLookup, | |
47 prefs::kDisableAuthNegotiateCnameLookup, true }, | |
48 { switches::kEnableAuthNegotiatePort, prefs::kEnableAuthNegotiatePort, | 46 { switches::kEnableAuthNegotiatePort, prefs::kEnableAuthNegotiatePort, |
49 true }, | 47 true }, |
50 { switches::kDisable3DAPIs, prefs::kDisable3DAPIs, true }, | 48 { switches::kDisable3DAPIs, prefs::kDisable3DAPIs, true }, |
51 { switches::kEnableCloudPrintProxy, prefs::kCloudPrintProxyEnabled, | 49 { switches::kEnableCloudPrintProxy, prefs::kCloudPrintProxyEnabled, |
52 true }, | 50 true }, |
53 { switches::kAllowOutdatedPlugins, prefs::kPluginsAllowOutdated, true }, | 51 { switches::kAllowOutdatedPlugins, prefs::kPluginsAllowOutdated, true }, |
54 { switches::kAlwaysAuthorizePlugins, prefs::kPluginsAlwaysAuthorize, | 52 { switches::kAlwaysAuthorizePlugins, prefs::kPluginsAlwaysAuthorize, |
55 true }, | 53 true }, |
56 { switches::kNoPings, prefs::kEnableHyperlinkAuditing, false }, | 54 { switches::kNoPings, prefs::kEnableHyperlinkAuditing, false }, |
57 { switches::kNoReferrers, prefs::kEnableReferrers, false }, | 55 { switches::kNoReferrers, prefs::kEnableReferrers, false }, |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 list_value->Append(new base::StringValue(*it)); | 176 list_value->Append(new base::StringValue(*it)); |
179 } | 177 } |
180 SetValue(prefs::kCipherSuiteBlacklist, list_value); | 178 SetValue(prefs::kCipherSuiteBlacklist, list_value); |
181 } | 179 } |
182 } | 180 } |
183 | 181 |
184 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { | 182 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { |
185 if (command_line_->HasSwitch(switches::kDisableExtensions)) | 183 if (command_line_->HasSwitch(switches::kDisableExtensions)) |
186 SetValue(prefs::kBackgroundModeEnabled, new base::FundamentalValue(false)); | 184 SetValue(prefs::kBackgroundModeEnabled, new base::FundamentalValue(false)); |
187 } | 185 } |
OLD | NEW |