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

Unified Diff: ui/views/bubble/bubble_frame_view_unittest.cc

Issue 2880433002: views: don't snap dialogs with no buttons (Closed)
Patch Set: add unittest Created 3 years, 7 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: ui/views/bubble/bubble_frame_view_unittest.cc
diff --git a/ui/views/bubble/bubble_frame_view_unittest.cc b/ui/views/bubble/bubble_frame_view_unittest.cc
index bcd120b6e1a6fcec3f0f0b372bc8da7b8b28c6bd..463760c059ef9bcc6fdc3354b3c45a2975ee706c 100644
--- a/ui/views/bubble/bubble_frame_view_unittest.cc
+++ b/ui/views/bubble/bubble_frame_view_unittest.cc
@@ -510,7 +510,7 @@ class TestBubbleDialogDelegateView : public BubbleDialogDelegateView {
// This delegate is owned by the test case itself, so it should not delete
// itself here.
}
- int GetDialogButtons() const override { return ui::DIALOG_BUTTON_NONE; }
+ int GetDialogButtons() const override { return ui::DIALOG_BUTTON_OK; }
bool ShouldSnapFrameWidth() const override {
return override_snap_.value_or(
BubbleDialogDelegateView::ShouldSnapFrameWidth());

Powered by Google App Engine
This is Rietveld 408576698