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

Unified Diff: content/child/child_histogram_message_filter.cc

Issue 1142063003: content/child: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix. 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 | « content/child/child_histogram_message_filter.h ('k') | content/child/child_process.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_histogram_message_filter.cc
diff --git a/content/child/child_histogram_message_filter.cc b/content/child/child_histogram_message_filter.cc
index 3e778d57b3b4dce943fe9382cac5f8c646c497af..dbf2dd22be18a5f9fda7a7425d64d40214380f55 100644
--- a/content/child/child_histogram_message_filter.cc
+++ b/content/child/child_histogram_message_filter.cc
@@ -7,8 +7,9 @@
#include <ctype.h>
#include "base/bind.h"
-#include "base/message_loop/message_loop.h"
+#include "base/location.h"
#include "base/metrics/histogram_delta_serialization.h"
+#include "base/single_thread_task_runner.h"
#include "content/child/child_process.h"
#include "content/common/child_process_messages.h"
#include "ipc/ipc_sender.h"
@@ -17,7 +18,7 @@ namespace content {
ChildHistogramMessageFilter::ChildHistogramMessageFilter()
: sender_(NULL),
- io_message_loop_(ChildProcess::current()->io_message_loop_proxy()) {
+ io_task_runner_(ChildProcess::current()->io_task_runner()) {
}
ChildHistogramMessageFilter::~ChildHistogramMessageFilter() {
@@ -42,7 +43,7 @@ bool ChildHistogramMessageFilter::OnMessageReceived(
}
void ChildHistogramMessageFilter::SendHistograms(int sequence_number) {
- io_message_loop_->PostTask(
+ io_task_runner_->PostTask(
FROM_HERE, base::Bind(&ChildHistogramMessageFilter::UploadAllHistograms,
this, sequence_number));
}
« no previous file with comments | « content/child/child_histogram_message_filter.h ('k') | content/child/child_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698