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

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

Issue 1016113002: Instrument "Remove this person" in user manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback/Naming tweaks Created 5 years, 9 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.cc
diff --git a/chrome/browser/ui/webui/options/manage_profile_handler.cc b/chrome/browser/ui/webui/options/manage_profile_handler.cc
index c3424c9d8bf65b6ecff7bf4b0314d6ae0245bc00..05941604f27f8f762af0f18e2385b1f6e70d87f7 100644
--- a/chrome/browser/ui/webui/options/manage_profile_handler.cc
+++ b/chrome/browser/ui/webui/options/manage_profile_handler.cc
@@ -64,6 +64,11 @@ bool GetProfilePathFromArgs(const base::ListValue* args,
return base::GetValueAsFilePath(*file_path_value, profile_file_path);
}
+void HandleDeleteUserDialogShown(const base::ListValue* args) {
Dan Beam 2015/03/19 17:28:39 nit: HandleLogDeleteUserDialogShown
+ ProfileMetrics::LogProfileDeleteUser(
+ ProfileMetrics::DELETE_PROFILE_SETTINGS_SHOW_WARNING);
+}
+
} // namespace
ManageProfileHandler::ManageProfileHandler()
@@ -185,6 +190,8 @@ void ManageProfileHandler::RegisterMessages() {
"showDisconnectManagedProfileDialog",
base::Bind(&ManageProfileHandler::ShowDisconnectManagedProfileDialog,
base::Unretained(this)));
+ web_ui()->RegisterMessageCallback("logDeleteUserDialogShown",
+ base::Bind(&HandleDeleteUserDialogShown));
}
void ManageProfileHandler::Uninitialize() {

Powered by Google App Engine
This is Rietveld 408576698