| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 #else | 59 #else |
| 60 { switches::kEnablePrintPreview, prefs::kPrintPreviewDisabled, false }, | 60 { switches::kEnablePrintPreview, prefs::kPrintPreviewDisabled, false }, |
| 61 #endif | 61 #endif |
| 62 #if defined(OS_CHROMEOS) | 62 #if defined(OS_CHROMEOS) |
| 63 { switches::kDisableDrive, prefs::kDisableDrive, true }, | 63 { switches::kDisableDrive, prefs::kDisableDrive, true }, |
| 64 { switches::kEnableTouchpadThreeFingerClick, | 64 { switches::kEnableTouchpadThreeFingerClick, |
| 65 prefs::kEnableTouchpadThreeFingerClick, true }, | 65 prefs::kEnableTouchpadThreeFingerClick, true }, |
| 66 { switches::kEnableTouchpadThreeFingerSwipe, | 66 { switches::kEnableTouchpadThreeFingerSwipe, |
| 67 prefs::kEnableTouchpadThreeFingerSwipe, true }, | 67 prefs::kEnableTouchpadThreeFingerSwipe, true }, |
| 68 #endif | 68 #endif |
| 69 { switches::kLoadCloudPolicyOnSignin, prefs::kLoadCloudPolicyOnSignin, | 69 { switches::kDisableCloudPolicyOnSignin, |
| 70 true }, | 70 prefs::kDisableCloudPolicyOnSignin, true }, |
| 71 { switches::kDisableAsyncDns, prefs::kBuiltInDnsClientEnabled, false }, | 71 { switches::kDisableAsyncDns, prefs::kBuiltInDnsClientEnabled, false }, |
| 72 { switches::kEnableAsyncDns, prefs::kBuiltInDnsClientEnabled, true }, | 72 { switches::kEnableAsyncDns, prefs::kBuiltInDnsClientEnabled, true }, |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 const CommandLinePrefStore::IntegerSwitchToPreferenceMapEntry | 75 const CommandLinePrefStore::IntegerSwitchToPreferenceMapEntry |
| 76 CommandLinePrefStore::integer_switch_map_[] = { | 76 CommandLinePrefStore::integer_switch_map_[] = { |
| 77 { switches::kDiskCacheSize, prefs::kDiskCacheSize }, | 77 { switches::kDiskCacheSize, prefs::kDiskCacheSize }, |
| 78 { switches::kMediaCacheSize, prefs::kMediaCacheSize }, | 78 { switches::kMediaCacheSize, prefs::kMediaCacheSize }, |
| 79 }; | 79 }; |
| 80 | 80 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 } | 175 } |
| 176 } | 176 } |
| 177 | 177 |
| 178 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { | 178 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { |
| 179 if (command_line_->HasSwitch(switches::kDisableBackgroundMode) || | 179 if (command_line_->HasSwitch(switches::kDisableBackgroundMode) || |
| 180 command_line_->HasSwitch(switches::kDisableExtensions)) { | 180 command_line_->HasSwitch(switches::kDisableExtensions)) { |
| 181 Value* value = Value::CreateBooleanValue(false); | 181 Value* value = Value::CreateBooleanValue(false); |
| 182 SetValue(prefs::kBackgroundModeEnabled, value); | 182 SetValue(prefs::kBackgroundModeEnabled, value); |
| 183 } | 183 } |
| 184 } | 184 } |
| OLD | NEW |