OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 /** | 5 /** |
6 * Class to manage user preferences. | 6 * Class to manage user preferences. |
7 * | 7 * |
8 * @constructor | 8 * @constructor |
9 */ | 9 */ |
10 function SwitchAccessPrefs() { | 10 function SwitchAccessPrefs() { |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 else | 124 else |
125 throw new TypeError('No value of string type for key \'' + key + '\''); | 125 throw new TypeError('No value of string type for key \'' + key + '\''); |
126 }, | 126 }, |
127 | 127 |
128 /** | 128 /** |
129 * The default value of all preferences. All preferences should be primitives | 129 * The default value of all preferences. All preferences should be primitives |
130 * to prevent changes to default values. | 130 * to prevent changes to default values. |
131 * | 131 * |
132 * @const | 132 * @const |
133 */ | 133 */ |
134 DEFAULT_PREFS: { | 134 DEFAULT_PREFS: {'enableAutoScan': false, 'autoScanTime': 800} |
135 'enableAutoScan': false, | |
136 'autoScanTime': 800 | |
137 } | |
138 }; | 135 }; |
OLD | NEW |