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

Unified Diff: chrome/browser/metrics/metrics_log.cc

Issue 9960042: Refactor screen/monitor so that gfx::Screen returns monitor object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix command line Created 8 years, 8 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/metrics_log.cc
diff --git a/chrome/browser/metrics/metrics_log.cc b/chrome/browser/metrics/metrics_log.cc
index 0df2ef1620a8b60832de354ec9b659c89213890a..e5847007226367442d082763b7df4a1a805b1573 100644
--- a/chrome/browser/metrics/metrics_log.cc
+++ b/chrome/browser/metrics/metrics_log.cc
@@ -34,6 +34,7 @@
#include "content/public/common/gpu_info.h"
#include "content/public/common/content_client.h"
#include "googleurl/src/gurl.h"
+#include "ui/gfx/monitor.h"
#include "ui/gfx/screen.h"
#include "webkit/plugins/webplugininfo.h"
@@ -264,7 +265,7 @@ PrefService* MetricsLog::GetPrefService() {
}
gfx::Size MetricsLog::GetScreenSize() const {
- return gfx::Screen::GetPrimaryMonitorSize();
+ return gfx::Screen::GetPrimaryMonitor()->GetSize();
}
int MetricsLog::GetScreenCount() const {

Powered by Google App Engine
This is Rietveld 408576698