summaryrefslogtreecommitdiffstats
path: root/ash/screensaver/screensaver_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ash/screensaver/screensaver_view.cc')
-rw-r--r--ash/screensaver/screensaver_view.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/ash/screensaver/screensaver_view.cc b/ash/screensaver/screensaver_view.cc
index 39eb8fb..013024a 100644
--- a/ash/screensaver/screensaver_view.cc
+++ b/ash/screensaver/screensaver_view.cc
@@ -10,10 +10,10 @@
#include "base/logging.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
-#include "ui/gfx/screen.h"
#include "ui/aura/root_window.h"
-#include "ui/views/layout/fill_layout.h"
+#include "ui/gfx/screen.h"
#include "ui/views/controls/webview/webview.h"
+#include "ui/views/layout/fill_layout.h"
#include "ui/views/widget/widget.h"
using content::BrowserThread;
@@ -129,7 +129,7 @@ void ScreensaverView::LoadScreensaver() {
void ScreensaverView::ShowWindow() {
aura::RootWindow* root_window = ash::Shell::GetPrimaryRootWindow();
gfx::Rect screen_rect =
- gfx::Screen::GetMonitorNearestWindow(root_window).bounds();
+ gfx::Screen::GetDisplayNearestWindow(root_window).bounds();
// We want to be the fullscreen topmost child of the root window.
// There should be nothing ever really that should show up on top of us.