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

Unified Diff: content/shell/renderer/layout_test/layout_test_content_renderer_client.cc

Issue 2823693002: Migrate RenderThreadImpl to use ConnectionFilter instead of the ChildThread's InterfaceRegistry to … (Closed)
Patch Set: . 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
Index: content/shell/renderer/layout_test/layout_test_content_renderer_client.cc
diff --git a/content/shell/renderer/layout_test/layout_test_content_renderer_client.cc b/content/shell/renderer/layout_test/layout_test_content_renderer_client.cc
index 89bc02d34d397b2cf3ce26252a8d8a3238022d2a..a5894bf3227360bb73d3de38904a38792f45b79e 100644
--- a/content/shell/renderer/layout_test/layout_test_content_renderer_client.cc
+++ b/content/shell/renderer/layout_test/layout_test_content_renderer_client.cc
@@ -19,7 +19,6 @@
#include "content/shell/common/shell_switches.h"
#include "content/shell/renderer/layout_test/blink_test_helpers.h"
#include "content/shell/renderer/layout_test/blink_test_runner.h"
-#include "content/shell/renderer/layout_test/interface_registry_js_wrapper.h"
#include "content/shell/renderer/layout_test/layout_test_render_frame_observer.h"
#include "content/shell/renderer/layout_test/layout_test_render_thread_observer.h"
#include "content/shell/renderer/layout_test/test_media_stream_renderer_factory.h"
@@ -242,33 +241,6 @@ void LayoutTestContentRendererClient::DidInitializeWorkerContextOnWorkerThread(
blink::WebTestingSupport::InjectInternalsObject(context);
}
-void LayoutTestContentRendererClient::RunScriptsAtDocumentEnd(
- RenderFrame* render_frame) {
- v8::Isolate* isolate = blink::MainThreadIsolate();
- v8::HandleScope handle_scope(isolate);
- blink::WebLocalFrame* frame = render_frame->GetWebFrame();
- v8::Local<v8::Context> context = frame->MainWorldScriptContext();
- v8::Context::Scope context_scope(context);
-
- gin::ModuleRegistry* registry = gin::ModuleRegistry::From(context);
- if (registry->available_modules().count(
- InterfaceRegistryJsWrapper::kPerFrameModuleName)) {
- return;
- }
-
- registry->AddBuiltinModule(
- isolate, InterfaceRegistryJsWrapper::kPerFrameModuleName,
- InterfaceRegistryJsWrapper::Create(isolate, context,
- render_frame->GetInterfaceRegistry())
- .ToV8());
- registry->AddBuiltinModule(
- isolate, InterfaceRegistryJsWrapper::kPerProcessModuleName,
- InterfaceRegistryJsWrapper::Create(
- isolate, context, RenderThread::Get()->GetInterfaceRegistry())
- .ToV8());
- registry->AttemptToLoadMoreModules(isolate);
-}
-
void LayoutTestContentRendererClient::
SetRuntimeFeaturesDefaultsBeforeBlinkInitialization() {
// We always expose GC to layout tests.

Powered by Google App Engine
This is Rietveld 408576698