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

Unified Diff: ash/test/ash_test_base.cc

Issue 557693002: [Ash] Only snap windows that can maximize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change ash_test_base.cc 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/test/ash_test_base.cc
diff --git a/ash/test/ash_test_base.cc b/ash/test/ash_test_base.cc
index 166e2b7d007df4a1aebf69a5e40342c9c753bfae..c0dd6c0775abf43d9b967c06248e70471ac4f534 100644
--- a/ash/test/ash_test_base.cc
+++ b/ash/test/ash_test_base.cc
@@ -220,12 +220,18 @@ aura::Window* AshTestBase::CurrentContext() {
}
aura::Window* AshTestBase::CreateTestWindowInShellWithId(int id) {
- return CreateTestWindowInShellWithDelegate(NULL, id, gfx::Rect());
+ return CreateTestWindowInShellWithDelegate(
+ aura::test::TestWindowDelegate::CreateSelfDestroyingDelegate(),
+ id,
+ gfx::Rect());
}
aura::Window* AshTestBase::CreateTestWindowInShellWithBounds(
const gfx::Rect& bounds) {
- return CreateTestWindowInShellWithDelegate(NULL, 0, bounds);
+ return CreateTestWindowInShellWithDelegate(
+ aura::test::TestWindowDelegate::CreateSelfDestroyingDelegate(),
+ 0,
+ bounds);
}
aura::Window* AshTestBase::CreateTestWindowInShell(SkColor color,

Powered by Google App Engine
This is Rietveld 408576698