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

Unified Diff: content/public/browser/browser_thread.h

Issue 2133083002: Remove all remaining traces of MessageLoopProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/browser/wake_lock/wake_lock_service_context.cc ('k') | content/public/renderer/render_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/browser_thread.h
diff --git a/content/public/browser/browser_thread.h b/content/public/browser/browser_thread.h
index 90b955f452ed7c33553a205d5629dcf2fa4af327..9233f5f5d5b21bae4a0f1532e7c43a2c53ef039e 100644
--- a/content/public/browser/browser_thread.h
+++ b/content/public/browser/browser_thread.h
@@ -131,7 +131,7 @@ class CONTENT_EXPORT BrowserThread {
const base::Callback<ReturnType(void)>& task,
const base::Callback<void(ReplyArgType)>& reply) {
scoped_refptr<base::SingleThreadTaskRunner> task_runner =
- GetMessageLoopProxyForThread(identifier);
+ GetTaskRunnerForThread(identifier);
return base::PostTaskAndReplyWithResult(task_runner.get(), from_here, task,
reply);
}
@@ -140,16 +140,14 @@ class CONTENT_EXPORT BrowserThread {
static bool DeleteSoon(ID identifier,
const tracked_objects::Location& from_here,
const T* object) {
- return GetMessageLoopProxyForThread(identifier)->DeleteSoon(
- from_here, object);
+ return GetTaskRunnerForThread(identifier)->DeleteSoon(from_here, object);
}
template <class T>
static bool ReleaseSoon(ID identifier,
const tracked_objects::Location& from_here,
const T* object) {
- return GetMessageLoopProxyForThread(identifier)->ReleaseSoon(
- from_here, object);
+ return GetTaskRunnerForThread(identifier)->ReleaseSoon(from_here, object);
}
// Simplified wrappers for posting to the blocking thread pool. Use this
@@ -218,8 +216,8 @@ class CONTENT_EXPORT BrowserThread {
// Callers can hold on to a refcounted task runner beyond the lifetime
// of the thread.
- static scoped_refptr<base::SingleThreadTaskRunner>
- GetMessageLoopProxyForThread(ID identifier);
+ static scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunnerForThread(
+ ID identifier);
// Returns a pointer to the thread's message loop, which will become
// invalid during shutdown, so you probably shouldn't hold onto it.
« no previous file with comments | « content/browser/wake_lock/wake_lock_service_context.cc ('k') | content/public/renderer/render_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698