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

Unified Diff: content/browser/geofencing/mock_geofencing_service.cc

Issue 1159623009: content: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test build fix. Created 5 years, 6 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: content/browser/geofencing/mock_geofencing_service.cc
diff --git a/content/browser/geofencing/mock_geofencing_service.cc b/content/browser/geofencing/mock_geofencing_service.cc
index e53b8c72f55d8b1048c176eb973964a42409fced..c3a1f27a3d343a7b0dc07776344438dfebc77f8d 100644
--- a/content/browser/geofencing/mock_geofencing_service.cc
+++ b/content/browser/geofencing/mock_geofencing_service.cc
@@ -10,7 +10,9 @@
#include <cmath>
#include "base/bind.h"
-#include "base/message_loop/message_loop.h"
+#include "base/location.h"
+#include "base/single_thread_task_runner.h"
+#include "base/thread_task_runner_handle.h"
#include "content/browser/geofencing/geofencing_registration_delegate.h"
#include "third_party/WebKit/public/platform/WebCircularGeofencingRegion.h"
@@ -21,7 +23,7 @@ namespace {
void RegisterRegionResult(GeofencingRegistrationDelegate* delegate,
int64 geofencing_registration_id,
GeofencingStatus status) {
- base::MessageLoop::current()->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
base::Bind(&GeofencingRegistrationDelegate::RegistrationFinished,
base::Unretained(delegate), geofencing_registration_id,
@@ -109,7 +111,7 @@ int64 MockGeofencingService::RegisterRegion(
PositionInRegion(last_latitude_, last_longitude_, region);
RegisterRegionResult(delegate, id, GEOFENCING_STATUS_OK);
if (registration.is_inside) {
- base::MessageLoop::current()->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::Bind(&GeofencingRegistrationDelegate::RegionEntered,
base::Unretained(delegate), id));
}
« no previous file with comments | « content/browser/geofencing/geofencing_service.cc ('k') | content/browser/geolocation/fake_access_token_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698