Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4795)

Unified Diff: chrome/browser/resources/sync_setup_overlay.js

Issue 10539128: Set timeout in sync setup (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed the branch with force_login Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/sync_setup_overlay.js
diff --git a/chrome/browser/resources/sync_setup_overlay.js b/chrome/browser/resources/sync_setup_overlay.js
index 865bcd9f669b260beb09ae8ad5b568f833ad7a5d..d2feb8bc35b80e2cd24d321b0c56b2fd981aac25 100644
--- a/chrome/browser/resources/sync_setup_overlay.js
+++ b/chrome/browser/resources/sync_setup_overlay.js
@@ -64,6 +64,10 @@ cr.define('options', function() {
$('confirm-everything-ok').onclick = function() {
self.sendConfiguration_();
};
+ $('timeout-ok').onclick = function() {
+ chrome.send('CloseTimeout');
+ self.closeOverlay_();
+ };
$('stop-syncing-ok').onclick = function() {
chrome.send('SyncSetupStopSyncing');
self.closeOverlay_();
@@ -416,6 +420,11 @@ cr.define('options', function() {
this.setThrobbersVisible_(true);
},
+ showTimeoutPage_: function() {
+ this.resetPage_('sync-setup-timeout');
+ $('sync-setup-timeout').hidden = false;
+ },
+
showSyncEverythingPage_: function() {
$('confirm-sync-preferences').hidden = false;
$('customize-sync-preferences').hidden = true;
@@ -544,6 +553,8 @@ cr.define('options', function() {
this.showConfigure_(args);
else if (page == 'spinner')
this.showSpinner_();
+ else if (page == 'timeout')
+ this.showTimeoutPage_();
},
/**

Powered by Google App Engine
This is Rietveld 408576698