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

Unified Diff: chrome/browser/ui/views/passwords/account_chooser_dialog_view.cc

Issue 1729723003: Reland: Remove DialogDelegate::OnClosed() which is redundant with (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: with fix Created 4 years, 10 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/passwords/account_chooser_dialog_view.cc
diff --git a/chrome/browser/ui/views/passwords/account_chooser_dialog_view.cc b/chrome/browser/ui/views/passwords/account_chooser_dialog_view.cc
index 8a08e2e34ae5301ad13bc4e8a90ec1c1da3a49fd..fe617ff101806703abec7c3214746b3f4b1d3e5e 100644
--- a/chrome/browser/ui/views/passwords/account_chooser_dialog_view.cc
+++ b/chrome/browser/ui/views/passwords/account_chooser_dialog_view.cc
@@ -99,6 +99,11 @@ bool AccountChooserDialogView::ShouldShowCloseButton() const {
return false;
}
+void AccountChooserDialogView::WindowClosing() {
+ if (controller_)
+ controller_->OnCloseDialog();
+}
+
int AccountChooserDialogView::GetDialogButtons() const {
return ui::DIALOG_BUTTON_CANCEL;
}
@@ -108,11 +113,6 @@ base::string16 AccountChooserDialogView::GetDialogButtonLabel(
return l10n_util::GetStringUTF16(IDS_APP_CANCEL);
}
-void AccountChooserDialogView::OnClosed() {
- if (controller_)
- controller_->OnCloseDialog();
-}
-
gfx::Size AccountChooserDialogView::GetPreferredSize() const {
return gfx::Size(kDesiredWidth, GetHeightForWidth(kDesiredWidth));
}

Powered by Google App Engine
This is Rietveld 408576698