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

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

Issue 63343004: Remove DialogDelegate::UseNewStyle and unused code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restore [D]CHECKs and loop scoping. Created 7 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 | « ui/views/window/dialog_delegate.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_delegate_unittest.cc
diff --git a/ui/views/window/dialog_delegate_unittest.cc b/ui/views/window/dialog_delegate_unittest.cc
index ba891f4305578d059f0e8303b8bdb15878429cda..ae4d689f04008ea9bfa7c7c6dc204967a8adb888 100644
--- a/ui/views/window/dialog_delegate_unittest.cc
+++ b/ui/views/window/dialog_delegate_unittest.cc
@@ -204,9 +204,6 @@ TEST_F(DialogTest, RemoveDefaultButton) {
}
TEST_F(DialogTest, HitTest) {
- if (!DialogDelegate::UseNewStyle())
- return;
-
// Ensure that the new style's BubbleFrameView hit-tests as expected.
const NonClientView* view = dialog()->GetWidget()->non_client_view();
BubbleFrameView* frame = static_cast<BubbleFrameView*>(view->frame_view());
@@ -232,9 +229,6 @@ TEST_F(DialogTest, HitTest) {
}
TEST_F(DialogTest, InitialBoundsAccommodateTitle) {
- if (!DialogDelegate::UseNewStyle())
- return;
-
TestDialog* titled_dialog(new TestDialog());
titled_dialog->set_title(ASCIIToUTF16("Title"));
DialogDelegate::CreateDialogWidget(titled_dialog, GetContext(), NULL);
« no previous file with comments | « ui/views/window/dialog_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698