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

Unified Diff: trunk/src/ash/wm/screen_dimmer_unittest.cc

Issue 133003002: Revert 244005 "Remove SetHostSize/Bounds from RootWindow in favo..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 11 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: trunk/src/ash/wm/screen_dimmer_unittest.cc
===================================================================
--- trunk/src/ash/wm/screen_dimmer_unittest.cc (revision 244032)
+++ trunk/src/ash/wm/screen_dimmer_unittest.cc (working copy)
@@ -70,9 +70,9 @@
// When we resize the root window, the dimming layer should be resized to
// match.
- gfx::Rect kNewBounds(400, 300);
- Shell::GetPrimaryRootWindow()->GetDispatcher()->host()->SetBounds(kNewBounds);
- EXPECT_EQ(kNewBounds.ToString(), dimming_layer->bounds().ToString());
+ gfx::Size kNewSize(400, 300);
+ Shell::GetPrimaryRootWindow()->GetDispatcher()->SetHostSize(kNewSize);
+ EXPECT_EQ(kNewSize.ToString(), dimming_layer->bounds().size().ToString());
}
} // namespace test

Powered by Google App Engine
This is Rietveld 408576698