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

Unified Diff: chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.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/metrics/chrome_browser_main_extra_parts_metrics.cc
diff --git a/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc b/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc
index 525ab3361ddd1ffe03f2e91bf304353354df9861..180d8387d5dc92803554ae7609a571477f183547 100644
--- a/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc
+++ b/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc
@@ -300,7 +300,7 @@ ChromeBrowserMainExtraPartsMetrics::ChromeBrowserMainExtraPartsMetrics()
ChromeBrowserMainExtraPartsMetrics::~ChromeBrowserMainExtraPartsMetrics() {
if (is_screen_observer_)
- gfx::Screen::GetNativeScreen()->RemoveObserver(this);
+ gfx::Screen::GetScreen()->RemoveObserver(this);
}
void ChromeBrowserMainExtraPartsMetrics::PreProfileInit() {
@@ -345,9 +345,9 @@ void ChromeBrowserMainExtraPartsMetrics::PostBrowserStart() {
base::Bind(&RecordStartupMetricsOnBlockingPool),
base::TimeDelta::FromSeconds(kStartupMetricsGatheringDelaySeconds));
- display_count_ = gfx::Screen::GetNativeScreen()->GetNumDisplays();
+ display_count_ = gfx::Screen::GetScreen()->GetNumDisplays();
UMA_HISTOGRAM_COUNTS_100("Hardware.Display.Count.OnStartup", display_count_);
- gfx::Screen::GetNativeScreen()->AddObserver(this);
+ gfx::Screen::GetScreen()->AddObserver(this);
is_screen_observer_ = true;
#if !defined(OS_ANDROID)
@@ -371,7 +371,7 @@ void ChromeBrowserMainExtraPartsMetrics::OnDisplayMetricsChanged(
}
void ChromeBrowserMainExtraPartsMetrics::EmitDisplaysChangedMetric() {
- int display_count = gfx::Screen::GetNativeScreen()->GetNumDisplays();
+ int display_count = gfx::Screen::GetScreen()->GetNumDisplays();
if (display_count != display_count_) {
display_count_ = display_count;
UMA_HISTOGRAM_COUNTS_100("Hardware.Display.Count.OnChange", display_count_);

Powered by Google App Engine
This is Rietveld 408576698