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

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

Issue 235943011: Add a checkbox on stop-sync dialog to allow user to choose whether to delete (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 // True if the synced account uses a custom passphrase. 8 // True if the synced account uses a custom passphrase.
9 var usePassphrase_ = false; 9 var usePassphrase_ = false;
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 self.closeOverlay_(); 76 self.closeOverlay_();
77 }; 77 };
78 $('confirm-everything-ok').onclick = function() { 78 $('confirm-everything-ok').onclick = function() {
79 self.sendConfiguration_(); 79 self.sendConfiguration_();
80 }; 80 };
81 $('timeout-ok').onclick = function() { 81 $('timeout-ok').onclick = function() {
82 chrome.send('CloseTimeout'); 82 chrome.send('CloseTimeout');
83 self.closeOverlay_(); 83 self.closeOverlay_();
84 }; 84 };
85 $('stop-syncing-ok').onclick = function() { 85 $('stop-syncing-ok').onclick = function() {
86 chrome.send('SyncSetupStopSyncing'); 86 var deleteProfile = $('delete-profile').checked;
87 chrome.send('SyncSetupStopSyncing', [deleteProfile]);
87 self.closeOverlay_(); 88 self.closeOverlay_();
88 }; 89 };
89 }, 90 },
90 91
91 showOverlay_: function() { 92 showOverlay_: function() {
92 OptionsPage.navigateToPage('syncSetup'); 93 OptionsPage.navigateToPage('syncSetup');
93 }, 94 },
94 95
95 closeOverlay_: function() { 96 closeOverlay_: function() {
96 this.syncConfigureArgs_ = null; 97 this.syncConfigureArgs_ = null;
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 778
778 SyncSetupOverlay.showStopSyncingUI = function() { 779 SyncSetupOverlay.showStopSyncingUI = function() {
779 SyncSetupOverlay.getInstance().showStopSyncingUI_(); 780 SyncSetupOverlay.getInstance().showStopSyncingUI_();
780 }; 781 };
781 782
782 // Export 783 // Export
783 return { 784 return {
784 SyncSetupOverlay: SyncSetupOverlay 785 SyncSetupOverlay: SyncSetupOverlay
785 }; 786 };
786 }); 787 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698