| 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.exportPath('options'); | 5 cr.exportPath('options'); |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * @typedef {{actionLinkText: (string|undefined), | 8 * @typedef {{actionLinkText: (string|undefined), |
| 9 * childUser: (boolean|undefined), | 9 * childUser: (boolean|undefined), |
| 10 * hasError: (boolean|undefined), | 10 * hasError: (boolean|undefined), |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 196 |
| 197 $('start-stop-sync').onclick = function(event) { | 197 $('start-stop-sync').onclick = function(event) { |
| 198 if (self.signedIn_) { | 198 if (self.signedIn_) { |
| 199 if (self.signoutAllowed_) | 199 if (self.signoutAllowed_) |
| 200 SyncSetupOverlay.showStopSyncingUI(); | 200 SyncSetupOverlay.showStopSyncingUI(); |
| 201 else | 201 else |
| 202 chrome.send('showDisconnectManagedProfileDialog'); | 202 chrome.send('showDisconnectManagedProfileDialog'); |
| 203 } else if (cr.isChromeOS) { | 203 } else if (cr.isChromeOS) { |
| 204 SyncSetupOverlay.showSetupUI(); | 204 SyncSetupOverlay.showSetupUI(); |
| 205 } else { | 205 } else { |
| 206 SyncSetupOverlay.startSignIn(); | 206 SyncSetupOverlay.startSignIn('access-point-settings'); |
| 207 } | 207 } |
| 208 }; | 208 }; |
| 209 $('customize-sync').onclick = function(event) { | 209 $('customize-sync').onclick = function(event) { |
| 210 SyncSetupOverlay.showSetupUI(); | 210 SyncSetupOverlay.showSetupUI(); |
| 211 }; | 211 }; |
| 212 | 212 |
| 213 // Internet connection section (ChromeOS only). | 213 // Internet connection section (ChromeOS only). |
| 214 if (cr.isChromeOS) { | 214 if (cr.isChromeOS) { |
| 215 options.network.NetworkList.decorate($('network-list')); | 215 options.network.NetworkList.decorate($('network-list')); |
| 216 // Show that the network settings are shared if this is a secondary user | 216 // Show that the network settings are shared if this is a secondary user |
| (...skipping 2102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2319 } | 2319 } |
| 2320 button.textContent = loadTimeData.getString(strId); | 2320 button.textContent = loadTimeData.getString(strId); |
| 2321 }; | 2321 }; |
| 2322 } | 2322 } |
| 2323 | 2323 |
| 2324 // Export | 2324 // Export |
| 2325 return { | 2325 return { |
| 2326 BrowserOptions: BrowserOptions | 2326 BrowserOptions: BrowserOptions |
| 2327 }; | 2327 }; |
| 2328 }); | 2328 }); |
| OLD | NEW |