| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 const OptionsPage = options.OptionsPage; | 6 const OptionsPage = options.OptionsPage; |
| 7 | 7 |
| 8 // Variable to track if a captcha challenge was issued. If this gets set to | 8 // Variable to track if a captcha challenge was issued. If this gets set to |
| 9 // true, it stays that way until we are told about successful login from | 9 // true, it stays that way until we are told about successful login from |
| 10 // the browser. This means subsequent errors (like invalid password) are | 10 // the browser. This means subsequent errors (like invalid password) are |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 } else { | 299 } else { |
| 300 $('autofill-item').className = "sync-item-hide"; | 300 $('autofill-item').className = "sync-item-hide"; |
| 301 } | 301 } |
| 302 if (args.extensionsRegistered) { | 302 if (args.extensionsRegistered) { |
| 303 $('extensions-checkbox').checked = args.syncExtensions; | 303 $('extensions-checkbox').checked = args.syncExtensions; |
| 304 $('extensions-item').className = "sync-item-show"; | 304 $('extensions-item').className = "sync-item-show"; |
| 305 } else { | 305 } else { |
| 306 $('extensions-item').className = "sync-item-hide"; | 306 $('extensions-item').className = "sync-item-hide"; |
| 307 } | 307 } |
| 308 if (args.typedUrlsRegistered) { | 308 if (args.typedUrlsRegistered) { |
| 309 $('typedUrls-checkbox').checked = args.syncTypedUrls; | 309 $('typed-urls-checkbox').checked = args.syncTypedUrls; |
| 310 $('omnibox-item').className = "sync-item-show"; | 310 $('omnibox-item').className = "sync-item-show"; |
| 311 } else { | 311 } else { |
| 312 $('omnibox-item').className = "sync-item-hide"; | 312 $('omnibox-item').className = "sync-item-hide"; |
| 313 } | 313 } |
| 314 if (args.appsRegistered) { | 314 if (args.appsRegistered) { |
| 315 $('apps-checkbox').checked = args.syncApps; | 315 $('apps-checkbox').checked = args.syncApps; |
| 316 $('apps-item').className = "sync-item-show"; | 316 $('apps-item').className = "sync-item-show"; |
| 317 } else { | 317 } else { |
| 318 $('apps-item').className = "sync-item-hide"; | 318 $('apps-item').className = "sync-item-hide"; |
| 319 } | 319 } |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 | 668 |
| 669 SyncSetupOverlay.showSuccessAndSettingUp = function() { | 669 SyncSetupOverlay.showSuccessAndSettingUp = function() { |
| 670 SyncSetupOverlay.getInstance().showSuccessAndSettingUp_(); | 670 SyncSetupOverlay.getInstance().showSuccessAndSettingUp_(); |
| 671 }; | 671 }; |
| 672 | 672 |
| 673 // Export | 673 // Export |
| 674 return { | 674 return { |
| 675 SyncSetupOverlay: SyncSetupOverlay | 675 SyncSetupOverlay: SyncSetupOverlay |
| 676 }; | 676 }; |
| 677 }); | 677 }); |
| OLD | NEW |