| 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 }, | |
| 64 #if defined(OS_CHROMEOS) | 63 #if defined(OS_CHROMEOS) |
| 65 { chromeos::switches::kEnableTouchpadThreeFingerClick, | 64 { chromeos::switches::kEnableTouchpadThreeFingerClick, |
| 66 prefs::kEnableTouchpadThreeFingerClick, true }, | 65 prefs::kEnableTouchpadThreeFingerClick, true }, |
| 67 #endif | 66 #endif |
| 68 { switches::kDisableAsyncDns, prefs::kBuiltInDnsClientEnabled, false }, | 67 { switches::kDisableAsyncDns, prefs::kBuiltInDnsClientEnabled, false }, |
| 69 { switches::kEnableAsyncDns, prefs::kBuiltInDnsClientEnabled, true }, | 68 { switches::kEnableAsyncDns, prefs::kBuiltInDnsClientEnabled, true }, |
| 70 }; | 69 }; |
| 71 | 70 |
| 72 const CommandLinePrefStore::IntegerSwitchToPreferenceMapEntry | 71 const CommandLinePrefStore::IntegerSwitchToPreferenceMapEntry |
| 73 CommandLinePrefStore::integer_switch_map_[] = { | 72 CommandLinePrefStore::integer_switch_map_[] = { |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 list_value->Append(new base::StringValue(*it)); | 175 list_value->Append(new base::StringValue(*it)); |
| 177 } | 176 } |
| 178 SetValue(prefs::kCipherSuiteBlacklist, list_value); | 177 SetValue(prefs::kCipherSuiteBlacklist, list_value); |
| 179 } | 178 } |
| 180 } | 179 } |
| 181 | 180 |
| 182 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { | 181 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { |
| 183 if (command_line_->HasSwitch(switches::kDisableExtensions)) | 182 if (command_line_->HasSwitch(switches::kDisableExtensions)) |
| 184 SetValue(prefs::kBackgroundModeEnabled, new base::FundamentalValue(false)); | 183 SetValue(prefs::kBackgroundModeEnabled, new base::FundamentalValue(false)); |
| 185 } | 184 } |
| OLD | NEW |