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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 { switches::kAlwaysAuthorizePlugins, prefs::kPluginsAlwaysAuthorize, | 53 { switches::kAlwaysAuthorizePlugins, prefs::kPluginsAlwaysAuthorize, |
54 true }, | 54 true }, |
55 { switches::kNoPings, prefs::kEnableHyperlinkAuditing, false }, | 55 { switches::kNoPings, prefs::kEnableHyperlinkAuditing, false }, |
56 { switches::kNoReferrers, prefs::kEnableReferrers, false }, | 56 { switches::kNoReferrers, prefs::kEnableReferrers, false }, |
57 { switches::kAllowRunningInsecureContent, | 57 { switches::kAllowRunningInsecureContent, |
58 prefs::kWebKitAllowRunningInsecureContent, true }, | 58 prefs::kWebKitAllowRunningInsecureContent, true }, |
59 { switches::kNoDisplayingInsecureContent, | 59 { switches::kNoDisplayingInsecureContent, |
60 prefs::kWebKitAllowDisplayingInsecureContent, false }, | 60 prefs::kWebKitAllowDisplayingInsecureContent, false }, |
61 { switches::kAllowCrossOriginAuthPrompt, | 61 { switches::kAllowCrossOriginAuthPrompt, |
62 prefs::kAllowCrossOriginAuthPrompt, true }, | 62 prefs::kAllowCrossOriginAuthPrompt, true }, |
| 63 { switches::kDisablePrintPreview, prefs::kPrintPreviewDisabled, true }, |
63 #if defined(OS_CHROMEOS) | 64 #if defined(OS_CHROMEOS) |
64 { chromeos::switches::kEnableTouchpadThreeFingerClick, | 65 { chromeos::switches::kEnableTouchpadThreeFingerClick, |
65 prefs::kEnableTouchpadThreeFingerClick, true }, | 66 prefs::kEnableTouchpadThreeFingerClick, true }, |
66 #endif | 67 #endif |
67 { switches::kDisableAsyncDns, prefs::kBuiltInDnsClientEnabled, false }, | 68 { switches::kDisableAsyncDns, prefs::kBuiltInDnsClientEnabled, false }, |
68 { switches::kEnableAsyncDns, prefs::kBuiltInDnsClientEnabled, true }, | 69 { switches::kEnableAsyncDns, prefs::kBuiltInDnsClientEnabled, true }, |
69 }; | 70 }; |
70 | 71 |
71 const CommandLinePrefStore::IntegerSwitchToPreferenceMapEntry | 72 const CommandLinePrefStore::IntegerSwitchToPreferenceMapEntry |
72 CommandLinePrefStore::integer_switch_map_[] = { | 73 CommandLinePrefStore::integer_switch_map_[] = { |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 list_value->Append(new base::StringValue(*it)); | 176 list_value->Append(new base::StringValue(*it)); |
176 } | 177 } |
177 SetValue(prefs::kCipherSuiteBlacklist, list_value); | 178 SetValue(prefs::kCipherSuiteBlacklist, list_value); |
178 } | 179 } |
179 } | 180 } |
180 | 181 |
181 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { | 182 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { |
182 if (command_line_->HasSwitch(switches::kDisableExtensions)) | 183 if (command_line_->HasSwitch(switches::kDisableExtensions)) |
183 SetValue(prefs::kBackgroundModeEnabled, new base::FundamentalValue(false)); | 184 SetValue(prefs::kBackgroundModeEnabled, new base::FundamentalValue(false)); |
184 } | 185 } |
OLD | NEW |