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

Unified Diff: components/html_viewer/blink_platform_impl.cc

Issue 1115443002: Remove unused blink::Platform::callOnMainThread implementations (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 | « components/html_viewer/blink_platform_impl.h ('k') | content/child/blink_platform_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/blink_platform_impl.cc
diff --git a/components/html_viewer/blink_platform_impl.cc b/components/html_viewer/blink_platform_impl.cc
index 4f71823663be9dcc6185f4a785c38b9442af4c2a..627ed7137812ea9fe09b1ff43b2234edaba493a8 100644
--- a/components/html_viewer/blink_platform_impl.cc
+++ b/components/html_viewer/blink_platform_impl.cc
@@ -59,13 +59,12 @@ class WebWaitableEventImpl : public blink::WebWaitableEvent {
} // namespace
BlinkPlatformImpl::BlinkPlatformImpl(mojo::ApplicationImpl* app)
- : main_loop_(base::MessageLoop::current()),
- shared_timer_func_(NULL),
+ : shared_timer_func_(NULL),
shared_timer_fire_time_(0.0),
shared_timer_fire_time_was_set_while_suspended_(false),
shared_timer_suspended_(0),
current_thread_slot_(&DestroyCurrentThread),
- scheduler_(main_loop_->message_loop_proxy()) {
+ scheduler_(base::ThreadTaskRunnerHandle::Get()) {
if (app) {
app->ConnectToService("mojo:network_service", &network_service_);
@@ -164,11 +163,6 @@ void BlinkPlatformImpl::stopSharedTimer() {
shared_timer_.Stop();
}
-void BlinkPlatformImpl::callOnMainThread(
- void (*func)(void*), void* context) {
- main_loop_->PostTask(FROM_HERE, base::Bind(func, context));
-}
-
bool BlinkPlatformImpl::isThreadedCompositingEnabled() {
return true;
}
« no previous file with comments | « components/html_viewer/blink_platform_impl.h ('k') | content/child/blink_platform_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698