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

Unified Diff: components/autofill/content/browser/risk/fingerprint_browsertest.cc

Issue 2317563004: Change blink::WebScreenInfo to content::ScreenInfo (Closed)
Patch Set: Fix Windows compile Created 4 years, 3 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_browsertest.cc
diff --git a/components/autofill/content/browser/risk/fingerprint_browsertest.cc b/components/autofill/content/browser/risk/fingerprint_browsertest.cc
index 7a90a345cda29acc17cdd149db161cd255d3bccd..302599f70cfff5e2d729ecb8f7f9f4c59250d438 100644
--- a/components/autofill/content/browser/risk/fingerprint_browsertest.cc
+++ b/components/autofill/content/browser/risk/fingerprint_browsertest.cc
@@ -14,6 +14,7 @@
#include "build/build_config.h"
#include "components/autofill/content/browser/risk/proto/fingerprint.pb.h"
#include "content/public/browser/gpu_data_manager.h"
+#include "content/public/common/screen_info.h"
#include "content/public/test/content_browser_test.h"
#include "content/public/test/test_utils.h"
#include "device/geolocation/geolocation_provider.h"
@@ -21,7 +22,6 @@
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/WebKit/public/platform/WebRect.h"
-#include "third_party/WebKit/public/platform/WebScreenInfo.h"
#include "ui/gfx/geometry/rect.h"
using testing::ElementsAre;
@@ -36,7 +36,7 @@ void GetFingerprintInternal(
uint64_t obfuscated_gaia_id,
const gfx::Rect& window_bounds,
const gfx::Rect& content_bounds,
- const blink::WebScreenInfo& screen_info,
+ const content::ScreenInfo& screen_info,
const std::string& version,
const std::string& charset,
const std::string& accept_languages,
@@ -198,10 +198,10 @@ IN_PROC_BROWSER_TEST_F(AutofillRiskFingerprintTest, GetFingerprint) {
device::GeolocationProvider::GetInstance()->OverrideLocationForTesting(
position);
- blink::WebScreenInfo screen_info;
+ content::ScreenInfo screen_info;
screen_info.depth = kScreenColorDepth;
- screen_info.rect = blink::WebRect(screen_bounds_);
- screen_info.availableRect = blink::WebRect(available_screen_bounds_);
+ screen_info.rect = screen_bounds_;
+ screen_info.available_rect = available_screen_bounds_;
internal::GetFingerprintInternal(
kObfuscatedGaiaId, window_bounds_, content_bounds_, screen_info,

Powered by Google App Engine
This is Rietveld 408576698