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', |
]); |