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/logging.h" | 10 #include "base/logging.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 { switches::kAlwaysAuthorizePlugins, prefs::kPluginsAlwaysAuthorize, | 48 { switches::kAlwaysAuthorizePlugins, prefs::kPluginsAlwaysAuthorize, |
49 true }, | 49 true }, |
50 { switches::kNoPings, prefs::kEnableHyperlinkAuditing, false }, | 50 { switches::kNoPings, prefs::kEnableHyperlinkAuditing, false }, |
51 { switches::kNoReferrers, prefs::kEnableReferrers, false }, | 51 { switches::kNoReferrers, prefs::kEnableReferrers, false }, |
52 { switches::kAllowRunningInsecureContent, | 52 { switches::kAllowRunningInsecureContent, |
53 prefs::kWebKitAllowRunningInsecureContent, true }, | 53 prefs::kWebKitAllowRunningInsecureContent, true }, |
54 { switches::kNoDisplayingInsecureContent, | 54 { switches::kNoDisplayingInsecureContent, |
55 prefs::kWebKitAllowDisplayingInsecureContent, false }, | 55 prefs::kWebKitAllowDisplayingInsecureContent, false }, |
56 { switches::kAllowCrossOriginAuthPrompt, | 56 { switches::kAllowCrossOriginAuthPrompt, |
57 prefs::kAllowCrossOriginAuthPrompt, true }, | 57 prefs::kAllowCrossOriginAuthPrompt, true }, |
58 { switches::kDisablePrintPreview, prefs::kPrintPreviewDisabled, true }, | |
59 #if defined(OS_CHROMEOS) | 58 #if defined(OS_CHROMEOS) |
60 { chromeos::switches::kEnableTouchpadThreeFingerClick, | 59 { chromeos::switches::kEnableTouchpadThreeFingerClick, |
61 prefs::kEnableTouchpadThreeFingerClick, true }, | 60 prefs::kEnableTouchpadThreeFingerClick, true }, |
62 #endif | 61 #endif |
63 { switches::kDisableAsyncDns, prefs::kBuiltInDnsClientEnabled, false }, | 62 { switches::kDisableAsyncDns, prefs::kBuiltInDnsClientEnabled, false }, |
64 { switches::kEnableAsyncDns, prefs::kBuiltInDnsClientEnabled, true }, | 63 { switches::kEnableAsyncDns, prefs::kBuiltInDnsClientEnabled, true }, |
65 }; | 64 }; |
66 | 65 |
67 const CommandLinePrefStore::IntegerSwitchToPreferenceMapEntry | 66 const CommandLinePrefStore::IntegerSwitchToPreferenceMapEntry |
68 CommandLinePrefStore::integer_switch_map_[] = { | 67 CommandLinePrefStore::integer_switch_map_[] = { |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 list_value->Append(new base::StringValue(*it)); | 162 list_value->Append(new base::StringValue(*it)); |
164 } | 163 } |
165 SetValue(prefs::kCipherSuiteBlacklist, list_value); | 164 SetValue(prefs::kCipherSuiteBlacklist, list_value); |
166 } | 165 } |
167 } | 166 } |
168 | 167 |
169 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { | 168 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { |
170 if (command_line_->HasSwitch(switches::kDisableExtensions)) | 169 if (command_line_->HasSwitch(switches::kDisableExtensions)) |
171 SetValue(prefs::kBackgroundModeEnabled, new base::FundamentalValue(false)); | 170 SetValue(prefs::kBackgroundModeEnabled, new base::FundamentalValue(false)); |
172 } | 171 } |
OLD | NEW |