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

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

Issue 273523007: Dispatch geolocation IPCs on the UI thread. Aside from simplifying the code to avoid a lot of threa… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 6 years, 7 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
===================================================================
--- components/autofill/content/browser/risk/fingerprint_browsertest.cc (revision 269778)
+++ components/autofill/content/browser/risk/fingerprint_browsertest.cc (working copy)
@@ -187,11 +187,8 @@
position.timestamp =
base::Time::UnixEpoch() +
base::TimeDelta::FromMilliseconds(kGeolocationTime);
- scoped_refptr<content::MessageLoopRunner> runner =
- new content::MessageLoopRunner;
- content::GeolocationProvider::OverrideLocationForTesting(
- position, runner->QuitClosure());
- runner->Run();
+ content::GeolocationProvider::GetInstance()->OverrideLocationForTesting(
+ position);
blink::WebScreenInfo screen_info;
screen_info.depth = kScreenColorDepth;
« no previous file with comments | « components/autofill/content/browser/risk/fingerprint.cc ('k') | content/browser/android/content_view_core_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698