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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 { switches::kDisableSSLFalseStart, prefs::kDisableSSLRecordSplitting, | 54 { switches::kDisableSSLFalseStart, prefs::kDisableSSLRecordSplitting, |
55 true }, | 55 true }, |
56 { switches::kEnableMemoryInfo, prefs::kEnableMemoryInfo, true }, | 56 { switches::kEnableMemoryInfo, prefs::kEnableMemoryInfo, true }, |
57 #if defined(GOOGLE_CHROME_BUILD) | 57 #if defined(GOOGLE_CHROME_BUILD) |
58 { switches::kDisablePrintPreview, prefs::kPrintPreviewDisabled, true }, | 58 { switches::kDisablePrintPreview, prefs::kPrintPreviewDisabled, true }, |
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::kDisableGData, prefs::kDisableGData, true }, | 63 { switches::kDisableGData, prefs::kDisableGData, true }, |
| 64 { switches::kEnableTouchpadThreeFingerClick, |
| 65 prefs::kEnableTouchpadThreeFingerClick, true }, |
64 #endif | 66 #endif |
65 }; | 67 }; |
66 | 68 |
67 const CommandLinePrefStore::IntegerSwitchToPreferenceMapEntry | 69 const CommandLinePrefStore::IntegerSwitchToPreferenceMapEntry |
68 CommandLinePrefStore::integer_switch_map_[] = { | 70 CommandLinePrefStore::integer_switch_map_[] = { |
69 { switches::kDiskCacheSize, prefs::kDiskCacheSize }, | 71 { switches::kDiskCacheSize, prefs::kDiskCacheSize }, |
70 { switches::kMediaCacheSize, prefs::kMediaCacheSize }, | 72 { switches::kMediaCacheSize, prefs::kMediaCacheSize }, |
71 }; | 73 }; |
72 | 74 |
73 CommandLinePrefStore::CommandLinePrefStore(const CommandLine* command_line) | 75 CommandLinePrefStore::CommandLinePrefStore(const CommandLine* command_line) |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 } | 169 } |
168 } | 170 } |
169 | 171 |
170 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { | 172 void CommandLinePrefStore::ApplyBackgroundModeSwitches() { |
171 if (command_line_->HasSwitch(switches::kDisableBackgroundMode) || | 173 if (command_line_->HasSwitch(switches::kDisableBackgroundMode) || |
172 command_line_->HasSwitch(switches::kDisableExtensions)) { | 174 command_line_->HasSwitch(switches::kDisableExtensions)) { |
173 Value* value = Value::CreateBooleanValue(false); | 175 Value* value = Value::CreateBooleanValue(false); |
174 SetValue(prefs::kBackgroundModeEnabled, value); | 176 SetValue(prefs::kBackgroundModeEnabled, value); |
175 } | 177 } |
176 } | 178 } |
OLD | NEW |