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

Unified Diff: content/browser/gpu/browser_gpu_channel_host_factory.cc

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
Index: content/browser/gpu/browser_gpu_channel_host_factory.cc
diff --git a/content/browser/gpu/browser_gpu_channel_host_factory.cc b/content/browser/gpu/browser_gpu_channel_host_factory.cc
index aff2083e6deff4b7e3fe02f0b11d17a907cee9c5..e5463687eae1d3a34f24d64ee2a6b5f24805dbfb 100644
--- a/content/browser/gpu/browser_gpu_channel_host_factory.cc
+++ b/content/browser/gpu/browser_gpu_channel_host_factory.cc
@@ -81,7 +81,7 @@ BrowserGpuChannelHostFactory::EstablishRequest::Create(
scoped_refptr<EstablishRequest> establish_request = new EstablishRequest(
cause, gpu_client_id, gpu_client_tracing_id, gpu_host_id);
scoped_refptr<base::SingleThreadTaskRunner> task_runner =
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO);
+ BrowserThread::GetTaskRunnerForThread(BrowserThread::IO);
// PostTask outside the constructor to ensure at least one reference exists.
task_runner->PostTask(
FROM_HERE,
@@ -267,7 +267,7 @@ bool BrowserGpuChannelHostFactory::IsMainThread() {
scoped_refptr<base::SingleThreadTaskRunner>
BrowserGpuChannelHostFactory::GetIOThreadTaskRunner() {
- return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO);
+ return BrowserThread::GetTaskRunnerForThread(BrowserThread::IO);
}
std::unique_ptr<base::SharedMemory>

Powered by Google App Engine
This is Rietveld 408576698