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

Unified Diff: content/child/scoped_child_process_reference.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
Index: content/child/scoped_child_process_reference.cc
diff --git a/content/child/scoped_child_process_reference.cc b/content/child/scoped_child_process_reference.cc
index f7d35fb2842763947ce3778aa9bb14554fa6b84c..757195708ff8f28c0e503ac10402f1c5d00234ed 100644
--- a/content/child/scoped_child_process_reference.cc
+++ b/content/child/scoped_child_process_reference.cc
@@ -5,6 +5,9 @@
#include "content/child/scoped_child_process_reference.h"
#include "base/bind.h"
+#include "base/location.h"
+#include "base/single_thread_task_runner.h"
+#include "base/thread_task_runner_handle.h"
#include "base/time/time.h"
#include "content/child/child_process.h"
@@ -23,10 +26,9 @@ ScopedChildProcessReference::~ScopedChildProcessReference() {
void ScopedChildProcessReference::ReleaseWithDelay(
const base::TimeDelta& delay) {
DCHECK(has_reference_);
- base::MessageLoop::current()->PostDelayedTask(
- FROM_HERE,
- base::Bind(&ChildProcess::ReleaseProcess,
- base::Unretained(ChildProcess::current())),
+ base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
+ FROM_HERE, base::Bind(&ChildProcess::ReleaseProcess,
+ base::Unretained(ChildProcess::current())),
delay);
has_reference_ = false;
}
« no previous file with comments | « content/child/power_monitor_broadcast_source.cc ('k') | content/child/service_worker/service_worker_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698