Index: chrome/browser/resources/options/browser_options.js |
diff --git a/chrome/browser/resources/options/browser_options.js b/chrome/browser/resources/options/browser_options.js |
index 607215703d6e93625542086459bee80a2edfa60b..5b4f542b10282fa4c312aaa5b419957db6687aaa 100644 |
--- a/chrome/browser/resources/options/browser_options.js |
+++ b/chrome/browser/resources/options/browser_options.js |
@@ -641,17 +641,15 @@ cr.define('options', function() { |
$('sync-action-link').hidden = syncData.actionLinkText.length == 0; |
$('sync-action-link').disabled = syncData.managed; |
- if (cr.isChromeOS && syncData.hasError) { |
- // On Chrome OS, sign out the user and sign in again to get fresh |
- // credentials on auth errors. |
- $('sync-action-link').onclick = function(event) { |
+ // On Chrome OS, sign out the user and sign in again to get fresh |
+ // credentials on auth errors. |
+ $('sync-action-link').onclick = function(event) { |
+ if (cr.isChromeOS && syncData.hasError) { |
SyncSetupOverlay.doSignOutOnAuthError(); |
- }; |
- } else { |
- $('sync-action-link').onclick = function(event) { |
+ } else { |
Evan Stade
2012/10/18 23:35:41
no curlies
kochi
2012/10/19 01:10:27
Done.
|
SyncSetupOverlay.showErrorUI(); |
- }; |
- } |
+ } |
+ }; |
if (syncData.hasError) |
$('sync-status').classList.add('sync-error'); |