| 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));
|
| }
|
|
|