Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / content / renderer / web_ui_runner.cc
index f6b6f5a..5d6f05c 100644 (file)
@@ -4,14 +4,10 @@
 
 #include "content/renderer/web_ui_runner.h"
 
-#include "content/public/common/service_registry.h"
 #include "content/public/renderer/render_frame.h"
-#include "content/renderer/mojo/service_registry_js_wrapper.h"
 #include "gin/modules/module_registry.h"
 #include "gin/per_context_data.h"
 #include "gin/public/context_holder.h"
-#include "mojo/bindings/js/core.h"
-#include "mojo/bindings/js/support.h"
 #include "third_party/WebKit/public/web/WebFrame.h"
 #include "third_party/WebKit/public/web/WebScriptSource.h"
 
@@ -39,25 +35,6 @@ WebUIRunner::WebUIRunner(blink::WebFrame* frame,
 WebUIRunner::~WebUIRunner() {
 }
 
-void WebUIRunner::RegisterBuiltinModules() {
-  gin::ModuleRegistry* registry =
-      gin::ModuleRegistry::From(context_holder_->context());
-  registry->AddBuiltinModule(context_holder_->isolate(),
-                             mojo::js::Core::kModuleName,
-                             mojo::js::Core::GetModule(
-                                 context_holder_->isolate()));
-  registry->AddBuiltinModule(context_holder_->isolate(),
-                             mojo::js::Support::kModuleName,
-                             mojo::js::Support::GetModule(
-                                 context_holder_->isolate()));
-  registry->AddBuiltinModule(
-      context_holder_->isolate(),
-      ServiceRegistryJsWrapper::kModuleName,
-      ServiceRegistryJsWrapper::Create(
-          context_holder_->isolate(),
-          RenderFrame::FromWebFrame(frame_)->GetServiceRegistry()).ToV8());
-}
-
 void WebUIRunner::Run(const std::string& source,
                       const std::string& resource_name) {
   frame_->executeScript(