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

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: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/sync_setup_overlay.html ('k') | chrome/browser/ui/webui/sync_setup_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a44e2bbff64e3686ecdb0deb00f14d7d0c2beb82 100644
--- a/chrome/browser/resources/sync_setup_overlay.js
+++ b/chrome/browser/resources/sync_setup_overlay.js
@@ -83,7 +83,9 @@ cr.define('options', function() {
self.closeOverlay_();
};
$('stop-syncing-ok').onclick = function() {
- chrome.send('SyncSetupStopSyncing');
+ var deleteProfile = $('delete-profile') != undefined &&
+ $('delete-profile').checked;
+ chrome.send('SyncSetupStopSyncing', [deleteProfile]);
self.closeOverlay_();
};
},
« no previous file with comments | « chrome/browser/resources/sync_setup_overlay.html ('k') | chrome/browser/ui/webui/sync_setup_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698