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

Unified Diff: chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_controller.cc

Issue 2800773003: Settings reset prompt: add more UI metrics. (Closed)
Patch Set: Created 3 years, 8 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/safe_browsing/settings_reset_prompt/settings_reset_prompt_controller.cc
diff --git a/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_controller.cc b/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_controller.cc
index a737bdec30537efb12581281bb2cfa2c5ddd175d..966429d1bb122a472583a43a502f1edb79badb31 100644
--- a/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_controller.cc
+++ b/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_controller.cc
@@ -177,6 +177,15 @@ void SettingsResetPromptController::Cancel() {
OnInteractionDone();
}
+void SettingsResetPromptController::Close() {
+ DCHECK(!time_dialog_shown_.is_null());
+ base::RecordAction(base::UserMetricsAction("SettingsResetPrompt_Dismissed"));
+ UMA_HISTOGRAM_LONG_TIMES_100("SettingsResetPrompt.TimeUntilDismissed",
+ base::Time::Now() - time_dialog_shown_);
+ UMA_HISTOGRAM_BOOLEAN("SettingsResetPrompt.PromptAccepted", false);
+ OnInteractionDone();
+}
+
void SettingsResetPromptController::InitMainText() {
DCHECK(main_text_.empty());

Powered by Google App Engine
This is Rietveld 408576698