Index: ash/wm/video_detector.cc |
diff --git a/ash/wm/video_detector.cc b/ash/wm/video_detector.cc |
index 743b49cb784f6f84d9bba5a7fe130868bf3e1901..cf7436e6a6d44d1d9a561a2438896426e6be8c5b 100644 |
--- a/ash/wm/video_detector.cc |
+++ b/ash/wm/video_detector.cc |
@@ -5,6 +5,7 @@ |
#include "ash/wm/video_detector.h" |
#include "ash/shell.h" |
+#include "ash/wm/window_state.h" |
#include "ash/wm/window_util.h" |
#include "ui/aura/env.h" |
#include "ui/aura/root_window.h" |
@@ -122,8 +123,8 @@ void VideoDetector::MaybeNotifyObservers(aura::Window* window, |
return; |
aura::Window* toplevel_window = wm::GetActivatableWindow(window); |
- bool is_fullscreen = |
- toplevel_window ? wm::IsWindowFullscreen(toplevel_window) : false; |
+ bool is_fullscreen = toplevel_window ? |
+ wm::GetWindowState(toplevel_window)->IsFullscreen() : false; |
FOR_EACH_OBSERVER(VideoDetectorObserver, |
observers_, |