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

Unified Diff: ui/views/window/dialog_delegate.cc

Issue 1752623004: Remove DialogDelegate::Accept() variant (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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
« no previous file with comments | « ui/views/window/dialog_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/dialog_delegate.cc
diff --git a/ui/views/window/dialog_delegate.cc b/ui/views/window/dialog_delegate.cc
index a7305d282a8b75c48a015766495955e98701bba2..f74f5a1cf268a38f12d6980ab911fd7b571b0a76 100644
--- a/ui/views/window/dialog_delegate.cc
+++ b/ui/views/window/dialog_delegate.cc
@@ -102,10 +102,6 @@ bool DialogDelegate::Cancel() {
return true;
}
-bool DialogDelegate::Accept(bool window_closing) {
- return Accept();
-}
-
bool DialogDelegate::Accept() {
return true;
}
@@ -116,7 +112,7 @@ bool DialogDelegate::Close() {
(buttons == ui::DIALOG_BUTTON_NONE)) {
return Cancel();
}
- return Accept(true);
+ return Accept();
}
base::string16 DialogDelegate::GetDialogTitle() const {
« no previous file with comments | « ui/views/window/dialog_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698