| Index: components/wifi/wifi_test.cc
|
| diff --git a/components/wifi/wifi_test.cc b/components/wifi/wifi_test.cc
|
| index b2d1def87513e204c0139fab81195e25e7fb2516..b6cb8fdaad73e6534bfa404cd72bab657bf0c8dc 100644
|
| --- a/components/wifi/wifi_test.cc
|
| +++ b/components/wifi/wifi_test.cc
|
| @@ -204,7 +204,7 @@ bool WiFiTest::ParseCommandLine(int argc, const char* argv[]) {
|
| wifi_service_->StartConnect(network_guid, &error);
|
| VLOG(0) << error;
|
| if (error.empty())
|
| - base::MessageLoop::current()->Run();
|
| + base::RunLoop().Run();
|
| return true;
|
| }
|
| }
|
| @@ -234,7 +234,7 @@ bool WiFiTest::ParseCommandLine(int argc, const char* argv[]) {
|
| base::Bind(&WiFiTest::OnNetworksChanged, base::Unretained(this)),
|
| base::Bind(&WiFiTest::OnNetworkListChanged, base::Unretained(this)));
|
| wifi_service_->RequestNetworkScan();
|
| - base::MessageLoop::current()->Run();
|
| + base::RunLoop().Run();
|
| return true;
|
| }
|
|
|
|
|