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

Unified Diff: sky/viewer/platform/platform_impl.cc

Issue 673033002: Remove WebThread (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 | « sky/viewer/platform/platform_impl.h ('k') | sky/viewer/platform/webthread_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/viewer/platform/platform_impl.cc
diff --git a/sky/viewer/platform/platform_impl.cc b/sky/viewer/platform/platform_impl.cc
index a6875c1ee0232fe0707c0f8cc51eacf8baa44594..744c43d76b22c93d23b1eef6d474e296bd45e766 100644
--- a/sky/viewer/platform/platform_impl.cc
+++ b/sky/viewer/platform/platform_impl.cc
@@ -17,7 +17,6 @@
#include "net/base/net_errors.h"
#include "sky/engine/public/platform/WebConvertableToTraceFormat.h"
#include "sky/engine/public/platform/WebWaitableEvent.h"
-#include "sky/viewer/platform/webthread_impl.h"
#include "sky/viewer/platform/weburlloader_impl.h"
namespace sky {
@@ -63,8 +62,7 @@ PlatformImpl::PlatformImpl(mojo::ApplicationImpl* app)
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) {
+ shared_timer_suspended_(0) {
app->ConnectToService("mojo://network_service/", &network_service_);
mojo::CookieStorePtr cookie_store;
@@ -184,22 +182,6 @@ blink::WebURLError PlatformImpl::cancelledError(const blink::WebURL& url)
return error;
}
-blink::WebThread* PlatformImpl::currentThread() {
- WebThreadImplForMessageLoop* thread =
- static_cast<WebThreadImplForMessageLoop*>(current_thread_slot_.Get());
- if (thread)
- return (thread);
-
- scoped_refptr<base::MessageLoopProxy> message_loop =
- base::MessageLoopProxy::current();
- if (!message_loop.get())
- return NULL;
-
- thread = new WebThreadImplForMessageLoop(message_loop.get());
- current_thread_slot_.Set(thread);
- return thread;
-}
-
blink::WebWaitableEvent* PlatformImpl::createWaitableEvent() {
return new WebWaitableEventImpl();
}
@@ -305,11 +287,4 @@ void PlatformImpl::updateTraceEventDuration(
category_group_enabled, name, traceEventHandle);
}
-// static
-void PlatformImpl::DestroyCurrentThread(void* thread) {
- WebThreadImplForMessageLoop* impl =
- static_cast<WebThreadImplForMessageLoop*>(thread);
- delete impl;
-}
-
} // namespace sky
« no previous file with comments | « sky/viewer/platform/platform_impl.h ('k') | sky/viewer/platform/webthread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698