summaryrefslogtreecommitdiffstats
path: root/content/browser/geolocation/geolocation_provider_impl_unittest.cc
diff options
context:
space:
mode:
authorskyostil <skyostil@chromium.org>2015-06-05 07:20:21 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-05 14:21:03 +0000
commit5d18b2493af36d77d3c491854e3d56f46f5f747c (patch)
tree23ff6852c9f044115ba2694d1bc76aae05e6c842 /content/browser/geolocation/geolocation_provider_impl_unittest.cc
parentca894ec12feb1a5166bdc639d87f915513627637 (diff)
downloadchromium_src-5d18b2493af36d77d3c491854e3d56f46f5f747c.zip
chromium_src-5d18b2493af36d77d3c491854e3d56f46f5f747c.tar.gz
chromium_src-5d18b2493af36d77d3c491854e3d56f46f5f747c.tar.bz2
content: Remove use of MessageLoopProxy and deprecated MessageLoop APIs
This patch was mostly autogenerated with https://codereview.chromium.org/1010073002/. BUG=465354 TBR=nick@chromium.org Review URL: https://codereview.chromium.org/1159623009 Cr-Commit-Position: refs/heads/master@{#333043}
Diffstat (limited to 'content/browser/geolocation/geolocation_provider_impl_unittest.cc')
-rw-r--r--content/browser/geolocation/geolocation_provider_impl_unittest.cc19
1 files changed, 8 insertions, 11 deletions
diff --git a/content/browser/geolocation/geolocation_provider_impl_unittest.cc b/content/browser/geolocation/geolocation_provider_impl_unittest.cc
index 685818b..3ba4dae 100644
--- a/content/browser/geolocation/geolocation_provider_impl_unittest.cc
+++ b/content/browser/geolocation/geolocation_provider_impl_unittest.cc
@@ -4,9 +4,10 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
+#include "base/location.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
-#include "base/message_loop/message_loop.h"
+#include "base/single_thread_task_runner.h"
#include "base/strings/string16.h"
#include "base/time/time.h"
#include "content/browser/geolocation/geolocation_provider_impl.h"
@@ -140,11 +141,9 @@ bool GeolocationProviderTest::ProvidersStarted() {
DCHECK(provider_->IsRunning());
DCHECK(base::MessageLoop::current() == &message_loop_);
bool started;
- provider_->message_loop_proxy()->PostTaskAndReply(
- FROM_HERE,
- base::Bind(&GeolocationProviderTest::GetProvidersStarted,
- base::Unretained(this),
- &started),
+ provider_->task_runner()->PostTaskAndReply(
+ FROM_HERE, base::Bind(&GeolocationProviderTest::GetProvidersStarted,
+ base::Unretained(this), &started),
base::MessageLoop::QuitClosure());
message_loop_.Run();
return started;
@@ -158,11 +157,9 @@ void GeolocationProviderTest::GetProvidersStarted(bool* started) {
void GeolocationProviderTest::SendMockLocation(const Geoposition& position) {
DCHECK(provider_->IsRunning());
DCHECK(base::MessageLoop::current() == &message_loop_);
- provider_->message_loop()
- ->PostTask(FROM_HERE,
- base::Bind(&GeolocationProviderImpl::OnLocationUpdate,
- base::Unretained(provider_.get()),
- position));
+ provider_->task_runner()->PostTask(
+ FROM_HERE, base::Bind(&GeolocationProviderImpl::OnLocationUpdate,
+ base::Unretained(provider_.get()), position));
}
// Regression test for http://crbug.com/59377