Index: extensions/browser/api/capture_web_contents_function.cc |
diff --git a/extensions/browser/api/capture_web_contents_function.cc b/extensions/browser/api/capture_web_contents_function.cc |
index e10842d8aee0aa103031261e8dec0ca9045f5479..77c8a3ea330138df2db0b205be5e4ef18d296599 100644 |
--- a/extensions/browser/api/capture_web_contents_function.cc |
+++ b/extensions/browser/api/capture_web_contents_function.cc |
@@ -78,7 +78,7 @@ bool CaptureWebContentsFunction::RunAsync() { |
const gfx::Size view_size = view->GetViewBounds().size(); |
gfx::Size bitmap_size = view_size; |
const gfx::NativeView native_view = view->GetNativeView(); |
- gfx::Screen* const screen = gfx::Screen::GetScreenFor(native_view); |
+ gfx::Screen* const screen = gfx::Screen::GetScreen(); |
const float scale = |
screen->GetDisplayNearestWindow(native_view).device_scale_factor(); |
if (scale > 1.0f) |