| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 { switches::kAlwaysAuthorizePlugins, prefs::kPluginsAlwaysAuthorize, | 42 { switches::kAlwaysAuthorizePlugins, prefs::kPluginsAlwaysAuthorize, |
| 43 true }, | 43 true }, |
| 44 { switches::kNoPings, prefs::kEnableHyperlinkAuditing, false }, | 44 { switches::kNoPings, prefs::kEnableHyperlinkAuditing, false }, |
| 45 { switches::kNoReferrers, prefs::kEnableReferrers, false }, | 45 { switches::kNoReferrers, prefs::kEnableReferrers, false }, |
| 46 { switches::kAllowRunningInsecureContent, | 46 { switches::kAllowRunningInsecureContent, |
| 47 prefs::kWebKitAllowRunningInsecureContent, true }, | 47 prefs::kWebKitAllowRunningInsecureContent, true }, |
| 48 { switches::kNoDisplayingInsecureContent, | 48 { switches::kNoDisplayingInsecureContent, |
| 49 prefs::kWebKitAllowDisplayingInsecureContent, false }, | 49 prefs::kWebKitAllowDisplayingInsecureContent, false }, |
| 50 { switches::kAllowCrossOriginAuthPrompt, | 50 { switches::kAllowCrossOriginAuthPrompt, |
| 51 prefs::kAllowCrossOriginAuthPrompt, true }, | 51 prefs::kAllowCrossOriginAuthPrompt, true }, |
| 52 { switches::kEnableTLSChannelID, prefs::kEnableOriginBoundCerts, true }, | 52 { switches::kDisableTLSChannelID, prefs::kEnableOriginBoundCerts, false }, |
| 53 { switches::kDisableSSLFalseStart, prefs::kDisableSSLRecordSplitting, | 53 { switches::kDisableSSLFalseStart, prefs::kDisableSSLRecordSplitting, |
| 54 true }, | 54 true }, |
| 55 { switches::kEnableMemoryInfo, prefs::kEnableMemoryInfo, true }, | 55 { switches::kEnableMemoryInfo, prefs::kEnableMemoryInfo, true }, |
| 56 #if defined(GOOGLE_CHROME_BUILD) | 56 #if defined(GOOGLE_CHROME_BUILD) |
| 57 { switches::kDisablePrintPreview, prefs::kPrintPreviewDisabled, true }, | 57 { switches::kDisablePrintPreview, prefs::kPrintPreviewDisabled, true }, |
| 58 #else | 58 #else |
| 59 { switches::kEnablePrintPreview, prefs::kPrintPreviewDisabled, false }, | 59 { switches::kEnablePrintPreview, prefs::kPrintPreviewDisabled, false }, |
| 60 #endif | 60 #endif |
| 61 #if defined(OS_CHROMEOS) | 61 #if defined(OS_CHROMEOS) |
| 62 { switches::kDisableGData, prefs::kDisableGData, true }, | 62 { switches::kDisableGData, prefs::kDisableGData, true }, |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 } | 170 } |
| 171 } | 171 } |
| 172 | 172 |
| 173 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { | 173 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { |
| 174 if (command_line_->HasSwitch(switches::kDisableBackgroundMode) || | 174 if (command_line_->HasSwitch(switches::kDisableBackgroundMode) || |
| 175 command_line_->HasSwitch(switches::kDisableExtensions)) { | 175 command_line_->HasSwitch(switches::kDisableExtensions)) { |
| 176 Value* value = Value::CreateBooleanValue(false); | 176 Value* value = Value::CreateBooleanValue(false); |
| 177 SetValue(prefs::kBackgroundModeEnabled, value); | 177 SetValue(prefs::kBackgroundModeEnabled, value); |
| 178 } | 178 } |
| 179 } | 179 } |
| OLD | NEW |