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

Unified Diff: components/wifi/wifi_test.cc

Issue 1144153004: components: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 7 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
« no previous file with comments | « components/wifi/wifi_service_win.cc ('k') | content/browser/devtools/browser_devtools_agent_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/wifi/wifi_test.cc
diff --git a/components/wifi/wifi_test.cc b/components/wifi/wifi_test.cc
index 47d1940e890a2f575f2256a11d37145e066d5c2f..490de32c31a9594c81810d90de687118c697b602 100644
--- a/components/wifi/wifi_test.cc
+++ b/components/wifi/wifi_test.cc
@@ -134,7 +134,7 @@ bool WiFiTest::ParseCommandLine(int argc, const char* argv[]) {
base::MessageLoopForIO loop;
wifi_service_.reset(WiFiService::Create());
- wifi_service_->Initialize(loop.message_loop_proxy());
+ wifi_service_->Initialize(loop.task_runner());
if (parsed_command_line.HasSwitch("list")) {
base::ListValue network_list;
@@ -192,7 +192,7 @@ bool WiFiTest::ParseCommandLine(int argc, const char* argv[]) {
}
wifi_service_->SetEventObservers(
- loop.message_loop_proxy(),
+ loop.task_runner(),
base::Bind(&WiFiTest::OnNetworksChanged, base::Unretained(this)),
base::Bind(&WiFiTest::OnNetworkListChanged, base::Unretained(this)));
@@ -225,7 +225,7 @@ bool WiFiTest::ParseCommandLine(int argc, const char* argv[]) {
if (parsed_command_line.HasSwitch("scan")) {
wifi_service_->SetEventObservers(
- loop.message_loop_proxy(),
+ loop.task_runner(),
base::Bind(&WiFiTest::OnNetworksChanged, base::Unretained(this)),
base::Bind(&WiFiTest::OnNetworkListChanged, base::Unretained(this)));
wifi_service_->RequestNetworkScan();
« no previous file with comments | « components/wifi/wifi_service_win.cc ('k') | content/browser/devtools/browser_devtools_agent_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698