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

Unified Diff: ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc

Issue 557693002: [Ash] Only snap windows that can maximize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix up other tests. Created 6 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
Index: ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc
diff --git a/ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc b/ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc
index 986d041da11a1a2e511c4cb534db032f87da0be1..3cd7e6c10b4b165890972078190abeb9c910d57e 100644
--- a/ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc
+++ b/ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc
@@ -119,12 +119,9 @@ class MaximizeModeWindowManagerTest : public test::AshTestBase {
bool can_maximize,
bool can_resize) {
aura::test::TestWindowDelegate* delegate = NULL;
- if (!can_maximize) {
- delegate = aura::test::TestWindowDelegate::CreateSelfDestroyingDelegate();
- delegate->set_window_component(HTCAPTION);
- if (!max_size.IsEmpty())
- delegate->set_maximum_size(max_size);
- }
+ delegate = aura::test::TestWindowDelegate::CreateSelfDestroyingDelegate();
+ delegate->set_window_component(HTCAPTION);
+ delegate->set_maximum_size(max_size);
aura::Window* window = aura::test::CreateTestWindowWithDelegateAndType(
delegate, type, 0, bounds, NULL);
window->SetProperty(aura::client::kCanMaximizeKey, can_maximize);

Powered by Google App Engine
This is Rietveld 408576698