Chromium Code Reviews| 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; |