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

Unified Diff: chrome/browser/ui/views/settings_reset_prompt_dialog.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/ui/views/settings_reset_prompt_dialog.cc
diff --git a/chrome/browser/ui/views/settings_reset_prompt_dialog.cc b/chrome/browser/ui/views/settings_reset_prompt_dialog.cc
index efbd888f2d3d92126eb1a51c5b683658182cca63..40ae6eb65ccf4cddf2bdb8e8909cbe8dad0ab86b 100644
--- a/chrome/browser/ui/views/settings_reset_prompt_dialog.cc
+++ b/chrome/browser/ui/views/settings_reset_prompt_dialog.cc
@@ -114,6 +114,14 @@ bool SettingsResetPromptDialog::Cancel() {
return true;
}
+bool SettingsResetPromptDialog::Close() {
+ if (!interaction_done_) {
+ interaction_done_ = true;
+ controller_->Close();
+ }
+ return true;
+}
+
// View overrides.
gfx::Size SettingsResetPromptDialog::GetPreferredSize() const {

Powered by Google App Engine
This is Rietveld 408576698