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

Unified Diff: chrome/browser/ui/views/js_modal_dialog_views.cc

Issue 8546003: views: Make SimpleMessageBoxViews::GetDialogButtons() more readable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | « no previous file | chrome/browser/ui/views/simple_message_box_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/js_modal_dialog_views.cc
diff --git a/chrome/browser/ui/views/js_modal_dialog_views.cc b/chrome/browser/ui/views/js_modal_dialog_views.cc
index 683b845c24815d1393f7d6049c594bee60746073..a021efb8175980a2d6593943f6a965c383655105 100644
--- a/chrome/browser/ui/views/js_modal_dialog_views.cc
+++ b/chrome/browser/ui/views/js_modal_dialog_views.cc
@@ -80,7 +80,7 @@ int JSModalDialogViews::GetDefaultDialogButton() const {
}
int JSModalDialogViews::GetDialogButtons() const {
- int dialog_buttons = 0;
+ int dialog_buttons = ui::DIALOG_BUTTON_NONE;
if (parent_->dialog_flags() & ui::MessageBoxFlags::kFlagHasOKButton)
dialog_buttons = ui::DIALOG_BUTTON_OK;
« no previous file with comments | « no previous file | chrome/browser/ui/views/simple_message_box_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698