diff options
author | skyostil <skyostil@chromium.org> | 2015-06-11 11:40:24 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-11 18:42:15 +0000 |
commit | 1472c84a875c09fd4f476d9fd1b5544906b72e03 (patch) | |
tree | 59b7979068ab539ae03351455eec84253fed7ffc /chromeos/dbus/fake_shill_third_party_vpn_driver_client.cc | |
parent | 0b35325d7b5e25f4942f79e3f4d6269c36f1c2e0 (diff) | |
download | chromium_src-1472c84a875c09fd4f476d9fd1b5544906b72e03.zip chromium_src-1472c84a875c09fd4f476d9fd1b5544906b72e03.tar.gz chromium_src-1472c84a875c09fd4f476d9fd1b5544906b72e03.tar.bz2 |
chromeos: Remove use of MessageLoopProxy and deprecated MessageLoop APIs
This patch was mostly autogenerated with https://codereview.chromium.org/1010073002/.
BUG=465354
Review URL: https://codereview.chromium.org/1173593002
Cr-Commit-Position: refs/heads/master@{#333996}
Diffstat (limited to 'chromeos/dbus/fake_shill_third_party_vpn_driver_client.cc')
-rw-r--r-- | chromeos/dbus/fake_shill_third_party_vpn_driver_client.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/chromeos/dbus/fake_shill_third_party_vpn_driver_client.cc b/chromeos/dbus/fake_shill_third_party_vpn_driver_client.cc index b5e45b9..b68d0b3 100644 --- a/chromeos/dbus/fake_shill_third_party_vpn_driver_client.cc +++ b/chromeos/dbus/fake_shill_third_party_vpn_driver_client.cc @@ -5,7 +5,9 @@ #include "chromeos/dbus/fake_shill_third_party_vpn_driver_client.h" #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 "chromeos/dbus/shill_third_party_vpn_observer.h" #include "dbus/object_proxy.h" @@ -44,8 +46,8 @@ void FakeShillThirdPartyVpnDriverClient::SetParameters( const base::DictionaryValue& parameters, const ShillClientHelper::StringCallback& callback, const ShillClientHelper::ErrorCallback& error_callback) { - base::MessageLoop::current()->PostTask(FROM_HERE, - base::Bind(callback, std::string())); + base::ThreadTaskRunnerHandle::Get()->PostTask( + FROM_HERE, base::Bind(callback, std::string())); } void FakeShillThirdPartyVpnDriverClient::UpdateConnectionState( @@ -53,7 +55,7 @@ void FakeShillThirdPartyVpnDriverClient::UpdateConnectionState( const uint32_t connection_state, const base::Closure& callback, const ShillClientHelper::ErrorCallback& error_callback) { - base::MessageLoop::current()->PostTask(FROM_HERE, callback); + base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, callback); } void FakeShillThirdPartyVpnDriverClient::SendPacket( @@ -61,7 +63,7 @@ void FakeShillThirdPartyVpnDriverClient::SendPacket( const std::vector<char>& ip_packet, const base::Closure& callback, const ShillClientHelper::ErrorCallback& error_callback) { - base::MessageLoop::current()->PostTask(FROM_HERE, callback); + base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, callback); } void FakeShillThirdPartyVpnDriverClient::OnPacketReceived( |