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

Unified Diff: third_party/WebKit/Source/core/testing/v8/WebCoreTestSupport.cpp

Issue 1915373002: Implement empty WorkerInternals interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@trials-in-service-workers
Patch Set: update expectations Created 4 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
Index: third_party/WebKit/Source/core/testing/v8/WebCoreTestSupport.cpp
diff --git a/third_party/WebKit/Source/core/testing/v8/WebCoreTestSupport.cpp b/third_party/WebKit/Source/core/testing/v8/WebCoreTestSupport.cpp
index 7b225b9fe93d9fae92f45d91626d2661f61c5cdf..76b1d711395d707ce69f8c40036574efeffaaaec 100644
--- a/third_party/WebKit/Source/core/testing/v8/WebCoreTestSupport.cpp
+++ b/third_party/WebKit/Source/core/testing/v8/WebCoreTestSupport.cpp
@@ -31,6 +31,7 @@
#include "core/frame/LocalFrame.h"
#include "core/testing/InternalSettings.h"
#include "core/testing/Internals.h"
+#include "core/testing/WorkerInternals.h"
using namespace blink;
@@ -43,6 +44,8 @@ v8::Local<v8::Value> createInternalsObject(v8::Local<v8::Context> context)
ExecutionContext* executionContext = scriptState->getExecutionContext();
if (executionContext->isDocument())
return toV8(Internals::create(scriptState), global, scriptState->isolate());
+ if (executionContext->isWorkerGlobalScope())
+ return toV8(WorkerInternals::create(scriptState), global, scriptState->isolate());
return v8::Local<v8::Value>();
}

Powered by Google App Engine
This is Rietveld 408576698