| 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 cr.define('options', function() { | 5 cr.define('options', function() { |
| 6 var OptionsPage = options.OptionsPage; | 6 var OptionsPage = options.OptionsPage; |
| 7 var ArrayDataModel = cr.ui.ArrayDataModel; | 7 var ArrayDataModel = cr.ui.ArrayDataModel; |
| 8 var RepeatingButton = cr.ui.RepeatingButton; | 8 var RepeatingButton = cr.ui.RepeatingButton; |
| 9 | 9 |
| 10 // | 10 // |
| (...skipping 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1253 'setupCloudPrintConnectorSection', | 1253 'setupCloudPrintConnectorSection', |
| 1254 'setupPageZoomSelector', | 1254 'setupPageZoomSelector', |
| 1255 'setupProxySettingsSection', | 1255 'setupProxySettingsSection', |
| 1256 'showBluetoothSettings', | 1256 'showBluetoothSettings', |
| 1257 'showDisplayOptions', | 1257 'showDisplayOptions', |
| 1258 'showMouseControls', | 1258 'showMouseControls', |
| 1259 'showTouchpadControls', | 1259 'showTouchpadControls', |
| 1260 'updateAccountPicture', | 1260 'updateAccountPicture', |
| 1261 'updateAutoLaunchState', | 1261 'updateAutoLaunchState', |
| 1262 'updateDefaultBrowserState', | 1262 'updateDefaultBrowserState', |
| 1263 'updateManagedBannerVisibility', | |
| 1264 'updateSearchEngines', | 1263 'updateSearchEngines', |
| 1265 'updateStartupPages', | 1264 'updateStartupPages', |
| 1266 'updateSyncState', | 1265 'updateSyncState', |
| 1267 ].forEach(function(name) { | 1266 ].forEach(function(name) { |
| 1268 BrowserOptions[name] = function() { | 1267 BrowserOptions[name] = function() { |
| 1269 var instance = BrowserOptions.getInstance(); | 1268 var instance = BrowserOptions.getInstance(); |
| 1270 return instance[name + '_'].apply(instance, arguments); | 1269 return instance[name + '_'].apply(instance, arguments); |
| 1271 }; | 1270 }; |
| 1272 }); | 1271 }); |
| 1273 | 1272 |
| 1274 if (cr.isChromeOS) { | 1273 if (cr.isChromeOS) { |
| 1275 /** | 1274 /** |
| 1276 * Returns username (canonical email) of the user logged in (ChromeOS only). | 1275 * Returns username (canonical email) of the user logged in (ChromeOS only). |
| 1277 * @return {string} user email. | 1276 * @return {string} user email. |
| 1278 */ | 1277 */ |
| 1279 // TODO(jhawkins): Investigate the use case for this method. | 1278 // TODO(jhawkins): Investigate the use case for this method. |
| 1280 BrowserOptions.getLoggedInUsername = function() { | 1279 BrowserOptions.getLoggedInUsername = function() { |
| 1281 return BrowserOptions.getInstance().username_; | 1280 return BrowserOptions.getInstance().username_; |
| 1282 }; | 1281 }; |
| 1283 } | 1282 } |
| 1284 | 1283 |
| 1285 // Export | 1284 // Export |
| 1286 return { | 1285 return { |
| 1287 BrowserOptions: BrowserOptions | 1286 BrowserOptions: BrowserOptions |
| 1288 }; | 1287 }; |
| 1289 }); | 1288 }); |
| OLD | NEW |