| 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 1caabc8501b891aa531c34d4f2c8b3aad3bc06ed..69ad9bd64d057413347aae7084dab453b245cc27 100644
|
| --- a/chrome/browser/ui/ash/chrome_shell_delegate_browsertest.cc
|
| +++ b/chrome/browser/ui/ash/chrome_shell_delegate_browsertest.cc
|
| @@ -10,7 +10,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"
|
| @@ -24,16 +23,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
|
|
|