| Index: chrome/browser/local_discovery/service_discovery_device_lister.cc
|
| diff --git a/chrome/browser/local_discovery/service_discovery_device_lister.cc b/chrome/browser/local_discovery/service_discovery_device_lister.cc
|
| index 7115ab6e16d01600cf9549fd6dab98d8bc7f221f..08fdf617d56208a4a9ba8ca4262d4ed2e5f9d562 100644
|
| --- a/chrome/browser/local_discovery/service_discovery_device_lister.cc
|
| +++ b/chrome/browser/local_discovery/service_discovery_device_lister.cc
|
| @@ -8,8 +8,10 @@
|
| #include <vector>
|
|
|
| #include "base/bind.h"
|
| -#include "base/message_loop/message_loop.h"
|
| +#include "base/location.h"
|
| +#include "base/single_thread_task_runner.h"
|
| #include "base/stl_util.h"
|
| +#include "base/threading/thread_task_runner_handle.h"
|
| #include "build/build_config.h"
|
|
|
| namespace local_discovery {
|
| @@ -95,11 +97,10 @@ void ServiceDiscoveryDeviceLister::OnResolveComplete(
|
| // On Mac, the Bonjour service does not seem to ever evict a service if a
|
| // device is unplugged, so we need to continuously try to resolve the
|
| // service to detect non-graceful shutdowns.
|
| - base::MessageLoop::current()->PostDelayedTask(
|
| + base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
|
| FROM_HERE,
|
| base::Bind(&ServiceDiscoveryDeviceLister::OnServiceUpdated,
|
| - weak_factory_.GetWeakPtr(),
|
| - ServiceWatcher::UPDATE_CHANGED,
|
| + weak_factory_.GetWeakPtr(), ServiceWatcher::UPDATE_CHANGED,
|
| service_description.service_name),
|
| base::TimeDelta::FromSeconds(kMacServiceResolvingIntervalSecs));
|
| #endif
|
|
|