| Index: chrome/browser/ui/ash/chrome_shell_delegate_browsertest.cc
|
| diff --git a/chrome/browser/ui/ash/chrome_shell_delegate_browsertest.cc b/chrome/browser/ui/ash/chrome_shell_delegate_browsertest.cc
|
| index 892021730a1f632887865e72b270c424fd4348e7..3c66e9fe7d836cdf264bb900cbfe2e38ca2d29fb 100644
|
| --- a/chrome/browser/ui/ash/chrome_shell_delegate_browsertest.cc
|
| +++ b/chrome/browser/ui/ash/chrome_shell_delegate_browsertest.cc
|
| @@ -9,7 +9,6 @@
|
| #include "ash/ash_switches.h"
|
| #include "ash/shell.h"
|
| #include "ash/shell_delegate.h"
|
| -#include "ash/wm/window_properties.h"
|
| #include "ash/wm/window_state.h"
|
| #include "base/command_line.h"
|
| #include "chrome/browser/apps/app_browsertest_util.h"
|
| @@ -23,16 +22,10 @@
|
|
|
| namespace {
|
|
|
| -// Returns true if |window| is in immersive fullscreen. Infer whether |window|
|
| -// is in immersive fullscreen based on whether kFullscreenUsesMinimalChromeKey
|
| -// is set for |window| because DEPS does not allow the test to use BrowserView.
|
| -// (This is not quite right because if a window is in both immersive browser
|
| -// fullscreen and in tab fullscreen, kFullScreenUsesMinimalChromeKey will
|
| -// not be set).
|
| +// Returns true if |window| is in immersive fullscreen.
|
| bool IsInImmersiveFullscreen(BrowserWindow* browser_window) {
|
| - return browser_window->IsFullscreen() &&
|
| - browser_window->GetNativeWindow()->GetProperty(
|
| - ash::internal::kFullscreenUsesMinimalChromeKey);
|
| + return ash::wm::GetWindowState(browser_window->GetNativeWindow())->
|
| + IsImmersiveFullscreen();
|
| }
|
|
|
| } // namespace
|
|
|