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

Unified 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: comments Created 6 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 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 909aa0a6d41c9f5106170f865957a98bfa858813..c0d9a4c386909cdcc9f36f728613f3767e147c46 100644
--- a/chrome/browser/resources/sync_setup_overlay.js
+++ b/chrome/browser/resources/sync_setup_overlay.js
@@ -83,7 +83,8 @@ cr.define('options', function() {
self.closeOverlay_();
};
$('stop-syncing-ok').onclick = function() {
- chrome.send('SyncSetupStopSyncing');
+ var deleteProfile = $('delete-profile').checked;
+ chrome.send('SyncSetupStopSyncing', [deleteProfile]);
self.closeOverlay_();
};
},

Powered by Google App Engine
This is Rietveld 408576698