| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 { switches::kNoReferrers, prefs::kEnableReferrers, false }, | 50 { switches::kNoReferrers, prefs::kEnableReferrers, false }, |
| 51 { switches::kAllowRunningInsecureContent, | 51 { switches::kAllowRunningInsecureContent, |
| 52 prefs::kWebKitAllowRunningInsecureContent, true }, | 52 prefs::kWebKitAllowRunningInsecureContent, true }, |
| 53 { switches::kNoDisplayingInsecureContent, | 53 { switches::kNoDisplayingInsecureContent, |
| 54 prefs::kWebKitAllowDisplayingInsecureContent, false }, | 54 prefs::kWebKitAllowDisplayingInsecureContent, false }, |
| 55 { switches::kAllowCrossOriginAuthPrompt, | 55 { switches::kAllowCrossOriginAuthPrompt, |
| 56 prefs::kAllowCrossOriginAuthPrompt, true }, | 56 prefs::kAllowCrossOriginAuthPrompt, true }, |
| 57 { switches::kDisableTLSChannelID, prefs::kEnableOriginBoundCerts, false }, | 57 { switches::kDisableTLSChannelID, prefs::kEnableOriginBoundCerts, false }, |
| 58 { switches::kDisableSSLFalseStart, prefs::kDisableSSLRecordSplitting, | 58 { switches::kDisableSSLFalseStart, prefs::kDisableSSLRecordSplitting, |
| 59 true }, | 59 true }, |
| 60 { switches::kEnableUnrestrictedSSL3Fallback, | |
| 61 prefs::kEnableUnrestrictedSSL3Fallback, true }, | |
| 62 #if defined(GOOGLE_CHROME_BUILD) | 60 #if defined(GOOGLE_CHROME_BUILD) |
| 63 { switches::kDisablePrintPreview, prefs::kPrintPreviewDisabled, true }, | 61 { switches::kDisablePrintPreview, prefs::kPrintPreviewDisabled, true }, |
| 64 #else | 62 #else |
| 65 { switches::kEnablePrintPreview, prefs::kPrintPreviewDisabled, false }, | 63 { switches::kEnablePrintPreview, prefs::kPrintPreviewDisabled, false }, |
| 66 #endif | 64 #endif |
| 67 #if defined(OS_CHROMEOS) | 65 #if defined(OS_CHROMEOS) |
| 68 { chromeos::switches::kEnableTouchpadThreeFingerClick, | 66 { chromeos::switches::kEnableTouchpadThreeFingerClick, |
| 69 prefs::kEnableTouchpadThreeFingerClick, true }, | 67 prefs::kEnableTouchpadThreeFingerClick, true }, |
| 70 #endif | 68 #endif |
| 71 { switches::kDisableAsyncDns, prefs::kBuiltInDnsClientEnabled, false }, | 69 { switches::kDisableAsyncDns, prefs::kBuiltInDnsClientEnabled, false }, |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 } | 173 } |
| 176 } | 174 } |
| 177 | 175 |
| 178 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { | 176 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { |
| 179 if (command_line_->HasSwitch(switches::kDisableBackgroundMode) || | 177 if (command_line_->HasSwitch(switches::kDisableBackgroundMode) || |
| 180 command_line_->HasSwitch(switches::kDisableExtensions)) { | 178 command_line_->HasSwitch(switches::kDisableExtensions)) { |
| 181 base::Value* value = base::Value::CreateBooleanValue(false); | 179 base::Value* value = base::Value::CreateBooleanValue(false); |
| 182 SetValue(prefs::kBackgroundModeEnabled, value); | 180 SetValue(prefs::kBackgroundModeEnabled, value); |
| 183 } | 181 } |
| 184 } | 182 } |
| OLD | NEW |