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

Unified Diff: chrome/browser/extensions/display_info_provider_chromeos.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: GetNativeScreen 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/extensions/display_info_provider_chromeos.cc
diff --git a/chrome/browser/extensions/display_info_provider_chromeos.cc b/chrome/browser/extensions/display_info_provider_chromeos.cc
index b68a7d82d9a239f1c2515682c907a1f6454b0ebf..a9c84ccfb99d7e8fa63f67a39d83920383426619 100644
--- a/chrome/browser/extensions/display_info_provider_chromeos.cc
+++ b/chrome/browser/extensions/display_info_provider_chromeos.cc
@@ -304,9 +304,7 @@ bool DisplayInfoProviderChromeOS::SetInfo(const std::string& display_id_str,
}
int64_t display_id = target.id();
- // TODO(scottmg): Native is wrong http://crbug.com/133312
- const gfx::Display& primary =
- gfx::Screen::GetNativeScreen()->GetPrimaryDisplay();
+ const gfx::Display& primary = gfx::Screen::GetScreen()->GetPrimaryDisplay();
if (!ValidateParamsForDisplay(
info, target, display_manager, primary.id(), error)) {

Powered by Google App Engine
This is Rietveld 408576698