summaryrefslogtreecommitdiffstats
path: root/ash/wm/video_detector_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ash/wm/video_detector_unittest.cc')
-rw-r--r--ash/wm/video_detector_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ash/wm/video_detector_unittest.cc b/ash/wm/video_detector_unittest.cc
index e1861c7..44c4e27 100644
--- a/ash/wm/video_detector_unittest.cc
+++ b/ash/wm/video_detector_unittest.cc
@@ -119,7 +119,7 @@ TEST_F(VideoDetectorTest, WindowNotVisible) {
// Reparent the window to the root to make sure that visibility changes aren't
// animated.
- Shell::GetRootWindow()->AddChild(window.get());
+ Shell::GetPrimaryRootWindow()->AddChild(window.get());
// We shouldn't report video that's played in a hidden window.
window->Hide();
@@ -143,7 +143,7 @@ TEST_F(VideoDetectorTest, WindowNotVisible) {
observer_->reset_stats();
AdvanceTime(base::TimeDelta::FromSeconds(2));
gfx::Rect offscreen_bounds(
- gfx::Point(Shell::GetRootWindow()->bounds().width(), 0),
+ gfx::Point(Shell::GetPrimaryRootWindow()->bounds().width(), 0),
window_bounds.size());
window->SetBounds(offscreen_bounds);
ASSERT_EQ(offscreen_bounds, window->bounds());