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

Unified Diff: chrome/browser/metrics/thread_watcher.cc

Issue 1114823002: [chrome/browser/metrices] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | « chrome/browser/metrics/thread_watcher.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/thread_watcher.cc
diff --git a/chrome/browser/metrics/thread_watcher.cc b/chrome/browser/metrics/thread_watcher.cc
index 03ad12dd23a9db947036a451a7e5cb937a72b9e0..8fc4fdd54204f1a45d476656bddc70b2bd643209 100644
--- a/chrome/browser/metrics/thread_watcher.cc
+++ b/chrome/browser/metrics/thread_watcher.cc
@@ -33,7 +33,7 @@ using content::BrowserThread;
ThreadWatcher::ThreadWatcher(const WatchingParams& params)
: thread_id_(params.thread_id),
thread_name_(params.thread_name),
- watched_loop_(
+ watched_runner_(
BrowserThread::GetMessageLoopProxyForThread(params.thread_id)),
sleep_time_(params.sleep_time),
unresponsive_time_(params.unresponsive_time),
@@ -141,7 +141,7 @@ void ThreadWatcher::PostPingMessage() {
base::Closure callback(
base::Bind(&ThreadWatcher::OnPongMessage, weak_ptr_factory_.GetWeakPtr(),
ping_sequence_number_));
- if (watched_loop_->PostTask(
+ if (watched_runner_->PostTask(
FROM_HERE,
base::Bind(&ThreadWatcher::OnPingMessage, thread_id_,
callback))) {
« no previous file with comments | « chrome/browser/metrics/thread_watcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698