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

Unified Diff: chrome/browser/ui/webui/options/manage_profile_handler.h

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/ui/webui/options/manage_profile_handler.h
diff --git a/chrome/browser/ui/webui/options/manage_profile_handler.h b/chrome/browser/ui/webui/options/manage_profile_handler.h
index 5c101879170f8a0defc975c6e8d5681f9709de97..ba5f80ca08c8a64f211b542f444fae498a2ed8b5 100644
--- a/chrome/browser/ui/webui/options/manage_profile_handler.h
+++ b/chrome/browser/ui/webui/options/manage_profile_handler.h
@@ -10,6 +10,7 @@
#include "base/memory/weak_ptr.h"
#include "base/prefs/pref_change_registrar.h"
#include "chrome/browser/profiles/profile_info_cache_observer.h"
+#include "chrome/browser/profiles/profile_statistics_service.h"
#include "chrome/browser/ui/webui/options/options_ui.h"
#include "components/sync_driver/sync_service_observer.h"
@@ -132,6 +133,18 @@ class ManageProfileHandler : public OptionsPageUIHandler,
// user is editing an existing profile.
void RefreshGaiaPicture(const base::ListValue* args);
+ // Stores the class ProfileStatisticsService for the use of its internal
+ // cancellable task tracker and states.
+ scoped_ptr<profiles::ProfileStatisticsService> profile_statistics_service_;
+
+ // Load extra statistics for the "delete user" dialog, which is called when
+ // the user press the delete profile button. This action is done async.
+ void DeleteUserDialogLoadStats(const base::ListValue* args);
+
+ // Callback from profiles::GetProfileStats. Send information back to the form.
+ void DeleteUserDialogLoadStatsCallback(const base::FilePath* profile_path,
+ profiles::ProfileStatisticsService::ProfileStatisticsValues result);
+
// URL for the current profile's GAIA picture.
std::string gaia_picture_url_;

Powered by Google App Engine
This is Rietveld 408576698