| Index: chrome/browser/chromeos/display/output_protection_delegate.cc
|
| diff --git a/chrome/browser/chromeos/display/output_protection_delegate.cc b/chrome/browser/chromeos/display/output_protection_delegate.cc
|
| index 88e0f77a0edc69863643ff07f68d2cfabed07e1e..2c347d07536db017e9c883be32f65fe33d987e00 100644
|
| --- a/chrome/browser/chromeos/display/output_protection_delegate.cc
|
| +++ b/chrome/browser/chromeos/display/output_protection_delegate.cc
|
| @@ -22,11 +22,10 @@ bool GetCurrentDisplayId(content::RenderFrameHost* rfh, int64_t* display_id) {
|
| DCHECK(rfh);
|
| DCHECK(display_id);
|
|
|
| - gfx::NativeView native_view = rfh->GetNativeView();
|
| - gfx::Screen* screen = gfx::Screen::GetScreenFor(native_view);
|
| + gfx::Screen* screen = gfx::Screen::GetScreen();
|
| if (!screen)
|
| return false;
|
| - gfx::Display display = screen->GetDisplayNearestWindow(native_view);
|
| + gfx::Display display = screen->GetDisplayNearestWindow(rfh->GetNativeView());
|
| *display_id = display.id();
|
| return true;
|
| }
|
|
|