Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1300)

Unified Diff: chrome/browser/chromeos/display/output_protection_delegate.cc

Issue 1608733002: Remove ui/gfx/screen_type_delegate.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-4
Patch Set: and another rebase Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}
« no previous file with comments | « chrome/browser/chromeos/display/display_preferences_unittest.cc ('k') | chrome/browser/chromeos/login/helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698