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); |
} |