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

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

Issue 1170623003: Revert "content: Remove use of MessageLoopProxy and deprecated MessageLoop APIs" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 c3a1f27a3d343a7b0dc07776344438dfebc77f8d..e53b8c72f55d8b1048c176eb973964a42409fced 100644
--- a/content/browser/geofencing/mock_geofencing_service.cc
+++ b/content/browser/geofencing/mock_geofencing_service.cc
@@ -10,9 +10,7 @@
#include <cmath>
#include "base/bind.h"
-#include "base/location.h"
-#include "base/single_thread_task_runner.h"
-#include "base/thread_task_runner_handle.h"
+#include "base/message_loop/message_loop.h"
#include "content/browser/geofencing/geofencing_registration_delegate.h"
#include "third_party/WebKit/public/platform/WebCircularGeofencingRegion.h"
@@ -23,7 +21,7 @@ namespace {
void RegisterRegionResult(GeofencingRegistrationDelegate* delegate,
int64 geofencing_registration_id,
GeofencingStatus status) {
- base::ThreadTaskRunnerHandle::Get()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(&GeofencingRegistrationDelegate::RegistrationFinished,
base::Unretained(delegate), geofencing_registration_id,
@@ -111,7 +109,7 @@ int64 MockGeofencingService::RegisterRegion(
PositionInRegion(last_latitude_, last_longitude_, region);
RegisterRegionResult(delegate, id, GEOFENCING_STATUS_OK);
if (registration.is_inside) {
- base::ThreadTaskRunnerHandle::Get()->PostTask(
+ base::MessageLoop::current()->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