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

Unified Diff: extensions/browser/api/system_info/system_info_api.cc

Issue 1608053002: Remove now-unnecessary wrappers around gfx::Screen::GetScreen() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-5
Patch Set: . 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: extensions/browser/api/system_info/system_info_api.cc
diff --git a/extensions/browser/api/system_info/system_info_api.cc b/extensions/browser/api/system_info/system_info_api.cc
index 74181cac6f04c7ea4d6b123faafab9b1945282c4..8c3e5c47ee2fd3154b9a97a88c198881a2a8deab 100644
--- a/extensions/browser/api/system_info/system_info_api.cc
+++ b/extensions/browser/api/system_info/system_info_api.cc
@@ -120,7 +120,7 @@ void SystemInfoEventRouter::AddEventListener(const std::string& event_name) {
return;
if (IsDisplayChangedEvent(event_name)) {
- gfx::Screen* screen = DisplayInfoProvider::Get()->GetActiveScreen();
+ gfx::Screen* screen = gfx::Screen::GetScreen();
if (screen)
screen->AddObserver(this);
}
@@ -146,7 +146,7 @@ void SystemInfoEventRouter::RemoveEventListener(const std::string& event_name) {
}
if (IsDisplayChangedEvent(event_name)) {
- gfx::Screen* screen = DisplayInfoProvider::Get()->GetActiveScreen();
+ gfx::Screen* screen = gfx::Screen::GetScreen();
if (screen)
screen->RemoveObserver(this);
}

Powered by Google App Engine
This is Rietveld 408576698