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

Side by Side Diff: chrome/browser/resources/sync_setup_overlay.js

Issue 10211010: Sync UI: Remove the StopSyncingHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 /** @const */ var OptionsPage = options.OptionsPage; 6 /** @const */ var 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 $('sync-setup-cancel').onclick = 52 $('sync-setup-cancel').onclick =
53 $('confirm-everything-cancel').onclick = 53 $('confirm-everything-cancel').onclick =
54 $('stop-syncing-cancel').onclick = 54 $('stop-syncing-cancel').onclick =
55 $('sync-spinner-cancel').onclick = function() { 55 $('sync-spinner-cancel').onclick = function() {
56 self.closeOverlay_(); 56 self.closeOverlay_();
57 }; 57 };
58 $('confirm-everything-ok').onclick = function() { 58 $('confirm-everything-ok').onclick = function() {
59 self.sendConfiguration_(); 59 self.sendConfiguration_();
60 }; 60 };
61 $('stop-syncing-ok').onclick = function() { 61 $('stop-syncing-ok').onclick = function() {
62 chrome.send('stopSyncing'); 62 chrome.send('SyncSetupStopSyncing');
63 self.closeOverlay_(); 63 self.closeOverlay_();
64 }; 64 };
65 }, 65 },
66 66
67 showOverlay_: function() { 67 showOverlay_: function() {
68 OptionsPage.navigateToPage('syncSetup'); 68 OptionsPage.navigateToPage('syncSetup');
69 }, 69 },
70 70
71 closeOverlay_: function() { 71 closeOverlay_: function() {
72 OptionsPage.closeOverlay(); 72 OptionsPage.closeOverlay();
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 888
889 SyncSetupOverlay.showStopSyncingUI = function() { 889 SyncSetupOverlay.showStopSyncingUI = function() {
890 SyncSetupOverlay.getInstance().showStopSyncingUI_(); 890 SyncSetupOverlay.getInstance().showStopSyncingUI_();
891 }; 891 };
892 892
893 // Export 893 // Export
894 return { 894 return {
895 SyncSetupOverlay: SyncSetupOverlay 895 SyncSetupOverlay: SyncSetupOverlay
896 }; 896 };
897 }); 897 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options2/stop_syncing_handler.h » ('j') | chrome/browser/ui/webui/sync_setup_handler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698