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

Unified Diff: chrome/browser/local_discovery/privet_traffic_detector.cc

Issue 1143343005: chrome/browser: 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, 6 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
Index: chrome/browser/local_discovery/privet_traffic_detector.cc
diff --git a/chrome/browser/local_discovery/privet_traffic_detector.cc b/chrome/browser/local_discovery/privet_traffic_detector.cc
index 9153af874414a7d491e5750baa5f87a5c39b276a..9682fb32473382ddc5c58ee784a39596b0777589 100644
--- a/chrome/browser/local_discovery/privet_traffic_detector.cc
+++ b/chrome/browser/local_discovery/privet_traffic_detector.cc
@@ -4,7 +4,9 @@
#include "chrome/browser/local_discovery/privet_traffic_detector.h"
+#include "base/location.h"
#include "base/metrics/histogram.h"
+#include "base/single_thread_task_runner.h"
#include "base/sys_byteorder.h"
#include "net/base/dns_util.h"
#include "net/base/net_errors.h"
@@ -59,7 +61,7 @@ PrivetTrafficDetector::PrivetTrafficDetector(
net::AddressFamily address_family,
const base::Closure& on_traffic_detected)
: on_traffic_detected_(on_traffic_detected),
- callback_runner_(base::MessageLoop::current()->message_loop_proxy()),
+ callback_runner_(base::MessageLoop::current()->task_runner()),
address_family_(address_family),
io_buffer_(
new net::IOBufferWithSize(net::dns_protocol::kMaxMulticastSize)),
« no previous file with comments | « chrome/browser/local_discovery/privet_notifications.cc ('k') | chrome/browser/local_discovery/privet_url_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698