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::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::kDisableSSLFalseStart, prefs::kDisableSSLRecordSplitting, | 58 { switches::kDisableSSLFalseStart, prefs::kDisableSSLRecordSplitting, |
59 true }, | 59 true }, |
60 #if defined(GOOGLE_CHROME_BUILD) | |
61 { switches::kDisablePrintPreview, prefs::kPrintPreviewDisabled, true }, | 60 { switches::kDisablePrintPreview, prefs::kPrintPreviewDisabled, true }, |
62 #else | |
63 { switches::kEnablePrintPreview, prefs::kPrintPreviewDisabled, false }, | |
64 #endif | |
65 #if defined(OS_CHROMEOS) | 61 #if defined(OS_CHROMEOS) |
66 { chromeos::switches::kEnableTouchpadThreeFingerClick, | 62 { chromeos::switches::kEnableTouchpadThreeFingerClick, |
67 prefs::kEnableTouchpadThreeFingerClick, true }, | 63 prefs::kEnableTouchpadThreeFingerClick, true }, |
68 #endif | 64 #endif |
69 { switches::kDisableAsyncDns, prefs::kBuiltInDnsClientEnabled, false }, | 65 { switches::kDisableAsyncDns, prefs::kBuiltInDnsClientEnabled, false }, |
70 { switches::kEnableAsyncDns, prefs::kBuiltInDnsClientEnabled, true }, | 66 { switches::kEnableAsyncDns, prefs::kBuiltInDnsClientEnabled, true }, |
71 }; | 67 }; |
72 | 68 |
73 const CommandLinePrefStore::IntegerSwitchToPreferenceMapEntry | 69 const CommandLinePrefStore::IntegerSwitchToPreferenceMapEntry |
74 CommandLinePrefStore::integer_switch_map_[] = { | 70 CommandLinePrefStore::integer_switch_map_[] = { |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 } | 169 } |
174 } | 170 } |
175 | 171 |
176 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { | 172 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { |
177 if (command_line_->HasSwitch(switches::kDisableBackgroundMode) || | 173 if (command_line_->HasSwitch(switches::kDisableBackgroundMode) || |
178 command_line_->HasSwitch(switches::kDisableExtensions)) { | 174 command_line_->HasSwitch(switches::kDisableExtensions)) { |
179 base::Value* value = base::Value::CreateBooleanValue(false); | 175 base::Value* value = base::Value::CreateBooleanValue(false); |
180 SetValue(prefs::kBackgroundModeEnabled, value); | 176 SetValue(prefs::kBackgroundModeEnabled, value); |
181 } | 177 } |
182 } | 178 } |
OLD | NEW |