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

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

Issue 1686433002: Remove DialogDelegate::OnClosed() which is redundant with (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 f7826d672c02a38d34afed73b3ada84dd46237ea..91fed89fde87262fa2a855ca0744853e3f4e188d 100644
--- a/chrome/browser/ui/views/passwords/account_chooser_dialog_view.cc
+++ b/chrome/browser/ui/views/passwords/account_chooser_dialog_view.cc
@@ -93,6 +93,11 @@ bool AccountChooserDialogView::ShouldShowCloseButton() const {
return false;
}
+void AccountChooserDialogView::WindowClosing() {
+ if (controller_)
+ controller_->OnCloseDialog();
+}
+
int AccountChooserDialogView::GetDialogButtons() const {
return ui::DIALOG_BUTTON_CANCEL;
}
@@ -102,11 +107,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