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

Unified Diff: components/autofill/content/browser/risk/fingerprint.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: components/autofill/content/browser/risk/fingerprint.cc
diff --git a/components/autofill/content/browser/risk/fingerprint.cc b/components/autofill/content/browser/risk/fingerprint.cc
index dacbd5f5b9f3b77edce2e136d4ad7a0de32e8ddc..c6f39560b61687cdb428d1ab7c4b581534301318 100644
--- a/components/autofill/content/browser/risk/fingerprint.cc
+++ b/components/autofill/content/browser/risk/fingerprint.cc
@@ -126,12 +126,10 @@ void AddAcceptLanguagesToFingerprint(
// into the |machine|.
void AddScreenInfoToFingerprint(const WebScreenInfo& screen_info,
Fingerprint::MachineCharacteristics* machine) {
- // TODO(scottmg): NativeScreen maybe wrong. http://crbug.com/133312
- machine->set_screen_count(
- gfx::Screen::GetNativeScreen()->GetNumDisplays());
+ machine->set_screen_count(gfx::Screen::GetScreen()->GetNumDisplays());
const gfx::Size screen_size =
- gfx::Screen::GetNativeScreen()->GetPrimaryDisplay().GetSizeInPixel();
+ gfx::Screen::GetScreen()->GetPrimaryDisplay().GetSizeInPixel();
machine->mutable_screen_size()->set_width(screen_size.width());
machine->mutable_screen_size()->set_height(screen_size.height());

Powered by Google App Engine
This is Rietveld 408576698