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

Unified Diff: content/renderer/renderer_blink_platform_impl.cc

Issue 690703002: WebThreadImplForMessageLoop to use blink scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding a null check for Sami Created 6 years, 1 month 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/renderer/renderer_blink_platform_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_blink_platform_impl.cc
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
index 2aa359bd43f7460f886ce95cdefcaf1717c91c2c..40141fcd8242985b3c5324fe3be2e4d9fab49aaa 100644
--- a/content/renderer/renderer_blink_platform_impl.cc
+++ b/content/renderer/renderer_blink_platform_impl.cc
@@ -229,7 +229,8 @@ class RendererBlinkPlatformImpl::SandboxSupport
RendererBlinkPlatformImpl::RendererBlinkPlatformImpl(
RendererScheduler* renderer_scheduler)
- : web_scheduler_(new WebSchedulerImpl(renderer_scheduler)),
+ : BlinkPlatformImpl(renderer_scheduler->DefaultTaskRunner()),
+ web_scheduler_(new WebSchedulerImpl(renderer_scheduler)),
clipboard_client_(new RendererClipboardClient),
clipboard_(new WebClipboardImpl(clipboard_client_.get())),
mime_registry_(new RendererBlinkPlatformImpl::MimeRegistry),
@@ -263,11 +264,6 @@ RendererBlinkPlatformImpl::~RendererBlinkPlatformImpl() {
//------------------------------------------------------------------------------
-void RendererBlinkPlatformImpl::callOnMainThread(void (*func)(void*),
- void* context) {
- default_task_runner_->PostTask(FROM_HERE, base::Bind(func, context));
-}
-
blink::WebScheduler* RendererBlinkPlatformImpl::scheduler() {
return web_scheduler_.get();
}
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698