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

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

Issue 10965052: Provide hook to abort dialog cancellation, disable cancellation during install. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | « chrome/browser/ui/views/web_intent_picker_views.cc ('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_client_view.cc
diff --git a/ui/views/window/dialog_client_view.cc b/ui/views/window/dialog_client_view.cc
index 1c289d3140ebfe7f36a03f6d80ab0430bd09d386..8116c502ba112a5f3137b6e3b472b5319c49d935 100644
--- a/ui/views/window/dialog_client_view.cc
+++ b/ui/views/window/dialog_client_view.cc
@@ -263,6 +263,8 @@ bool DialogClientView::CanClose() {
close = dd->Cancel();
else if (buttons & ui::DIALOG_BUTTON_OK)
close = dd->Accept(true);
+ else if (buttons == ui::DIALOG_BUTTON_NONE)
sky 2012/09/24 13:50:42 combine this with 262. Also, update the descriptio
groby-ooo-7-16 2012/09/25 17:27:11 Done. Checked existing dialogs, and three use DIA
+ close = dd->Cancel();
notified_delegate_ = close;
return close;
}
« no previous file with comments | « chrome/browser/ui/views/web_intent_picker_views.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698