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

Unified Diff: chrome/browser/resources/options/manage_profile_overlay.js

Issue 1248613003: Issue 501916 : Add data type counts to profile deletion flow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First draft Created 5 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/options/manage_profile_overlay.js
diff --git a/chrome/browser/resources/options/manage_profile_overlay.js b/chrome/browser/resources/options/manage_profile_overlay.js
index 5b3e41f813d011ed486966b84ef780cd20e6ce67..55f08afcdee88c1e44b83f8be22c0325f1dfdcf3 100644
--- a/chrome/browser/resources/options/manage_profile_overlay.js
+++ b/chrome/browser/resources/options/manage_profile_overlay.js
@@ -570,6 +570,10 @@ cr.define('options', function() {
$('delete-supervised-profile-addendum').hidden =
!profileInfo.isSupervised || profileInfo.isChild;
+ if (profileInfo.isCurrentProfile) {
+ chrome.send('deleteUserDialogLoadStats', [profileInfo.filePath]);
+ }
+
// Because this dialog isn't useful when refreshing or as part of the
// history, don't create a history entry for it when showing.
PageManager.showPageByName('manageProfile', false);
@@ -577,6 +581,16 @@ cr.define('options', function() {
},
/**
+ * Update the information in the "Delete Profile" dialog.
+ * @param {string} profileURL the filepath of the URL (must be verified)
+ * @param {Object} profileStats Statistics associated with profileURL.
+ * @private
+ */
+ updateDeleteDialog_: function(profileURL, profileStats) {
+ console.log(JSON.stringify(profileStats));
+ },
+
+ /**
* Display the "Disconnect Managed Profile" dialog.
* @private
*/
@@ -615,6 +629,7 @@ cr.define('options', function() {
'setProfileName',
'showManageDialog',
'showDeleteDialog',
+ 'updateDeleteDialog',
'showDisconnectManagedProfileDialog',
'showCreateDialog',
]);

Powered by Google App Engine
This is Rietveld 408576698