| Index: chrome/browser/local_discovery/privet_notifications.cc
|
| diff --git a/chrome/browser/local_discovery/privet_notifications.cc b/chrome/browser/local_discovery/privet_notifications.cc
|
| index 493d8ee9b6b422fb45ec956bac6c67ec09312dac..23945cb4b4c0bb8e17b41bd77a4363faf70c2167 100644
|
| --- a/chrome/browser/local_discovery/privet_notifications.cc
|
| +++ b/chrome/browser/local_discovery/privet_notifications.cc
|
| @@ -6,11 +6,13 @@
|
|
|
| #include "base/bind.h"
|
| #include "base/command_line.h"
|
| -#include "base/message_loop/message_loop.h"
|
| +#include "base/location.h"
|
| #include "base/metrics/histogram.h"
|
| #include "base/prefs/pref_service.h"
|
| #include "base/rand_util.h"
|
| +#include "base/single_thread_task_runner.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| +#include "base/thread_task_runner_handle.h"
|
| #include "chrome/browser/browser_process.h"
|
| #include "chrome/browser/local_discovery/privet_device_lister_impl.h"
|
| #include "chrome/browser/local_discovery/privet_http_asynchronous_factory.h"
|
| @@ -196,11 +198,10 @@ PrivetNotificationsListener::DeviceContext::~DeviceContext() {
|
| PrivetNotificationService::PrivetNotificationService(
|
| content::BrowserContext* profile)
|
| : profile_(profile) {
|
| - base::MessageLoop::current()->PostDelayedTask(
|
| - FROM_HERE,
|
| - base::Bind(&PrivetNotificationService::Start, AsWeakPtr()),
|
| + base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
|
| + FROM_HERE, base::Bind(&PrivetNotificationService::Start, AsWeakPtr()),
|
| base::TimeDelta::FromSeconds(kStartDelaySeconds +
|
| - base::RandInt(0, kStartDelaySeconds/4)));
|
| + base::RandInt(0, kStartDelaySeconds / 4)));
|
| }
|
|
|
| PrivetNotificationService::~PrivetNotificationService() {
|
|
|