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

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: Log showing profile deletion warning in settings page. 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..e6091880fad58020a6856e36ceff14b25d88aedd 100644
--- a/chrome/browser/ui/webui/options/manage_profile_handler.cc
+++ b/chrome/browser/ui/webui/options/manage_profile_handler.cc
@@ -185,6 +185,9 @@ void ManageProfileHandler::RegisterMessages() {
"showDisconnectManagedProfileDialog",
base::Bind(&ManageProfileHandler::ShowDisconnectManagedProfileDialog,
base::Unretained(this)));
+ web_ui()->RegisterMessageCallback("showDeleteUserDialog",
+ base::Bind(&ManageProfileHandler::HandleDeleteUserDialogShown,
+ base::Unretained(this)));
}
void ManageProfileHandler::Uninitialize() {
@@ -219,6 +222,12 @@ void ManageProfileHandler::OnStateChanged() {
RequestCreateProfileUpdate(NULL);
}
+void ManageProfileHandler::HandleDeleteUserDialogShown(
Dan Beam 2015/03/18 22:36:33 instead of making this a private instance method,
+ const base::ListValue* args) {
+ ProfileMetrics::LogProfileDeleteUser(
+ ProfileMetrics::DELETE_PROFILE_SETTINGS_SHOW_WARNING);
+}
+
void ManageProfileHandler::GenerateSignedinUserSpecificStrings(
base::DictionaryValue* dictionary) {
std::string username;

Powered by Google App Engine
This is Rietveld 408576698