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

Unified Diff: content/child/blink_platform_impl.cc

Issue 2810883002: [scheduler] Remove webthread_impl_for_worker_scheduler from public API. (Closed)
Patch Set: Add TODO to remove WebThreadBase from public API Created 3 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 | « no previous file | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/blink_platform_impl.cc
diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc
index 707f34a56f39c4947c052b2dd748cb2747b182e9..07879096775ba620db8c20ee81b891aef3333df0 100644
--- a/content/child/blink_platform_impl.cc
+++ b/content/child/blink_platform_impl.cc
@@ -55,7 +55,7 @@
#include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
#include "third_party/WebKit/public/platform/WebString.h"
#include "third_party/WebKit/public/platform/WebURL.h"
-#include "third_party/WebKit/public/platform/scheduler/child/webthread_impl_for_worker_scheduler.h"
+#include "third_party/WebKit/public/platform/scheduler/child/webthread_base.h"
#include "third_party/zlib/google/compression_utils.h"
#include "ui/base/layout.h"
#include "ui/events/gestures/blink/web_gesture_curve_impl.h"
@@ -69,7 +69,6 @@ using blink::WebThemeEngine;
using blink::WebURL;
using blink::WebURLError;
using blink::WebURLLoader;
-using blink::scheduler::WebThreadImplForWorkerScheduler;
namespace content {
@@ -400,8 +399,9 @@ WebURLError BlinkPlatformImpl::CancelledError(
}
blink::WebThread* BlinkPlatformImpl::CreateThread(const char* name) {
- std::unique_ptr<WebThreadImplForWorkerScheduler> thread(
- new WebThreadImplForWorkerScheduler(name));
+ std::unique_ptr<blink::scheduler::WebThreadBase> thread =
+ blink::scheduler::WebThreadBase::CreateWorkerThread(
+ name, base::Thread::Options());
thread->Init();
WaitUntilWebThreadTLSUpdate(thread.get());
return thread.release();
« no previous file with comments | « no previous file | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698