| Index: extensions/renderer/v8_context_native_handler.cc
|
| diff --git a/extensions/renderer/v8_context_native_handler.cc b/extensions/renderer/v8_context_native_handler.cc
|
| index 6124311e5619e490babfbe25ac95dd2415d44725..85c3c3794ea2c29a2b2968304f3fd7bd160c9d6c 100644
|
| --- a/extensions/renderer/v8_context_native_handler.cc
|
| +++ b/extensions/renderer/v8_context_native_handler.cc
|
| @@ -20,9 +20,6 @@ V8ContextNativeHandler::V8ContextNativeHandler(ScriptContext* context)
|
| RouteFunction("GetModuleSystem",
|
| base::Bind(&V8ContextNativeHandler::GetModuleSystem,
|
| base::Unretained(this)));
|
| - RouteFunction("RunWithNativesEnabled", "test",
|
| - base::Bind(&V8ContextNativeHandler::RunWithNativesEnabled,
|
| - base::Unretained(this)));
|
| }
|
|
|
| void V8ContextNativeHandler::GetAvailability(
|
| @@ -55,12 +52,4 @@ void V8ContextNativeHandler::GetModuleSystem(
|
| args.GetReturnValue().Set(context->module_system()->NewInstance());
|
| }
|
|
|
| -void V8ContextNativeHandler::RunWithNativesEnabled(
|
| - const v8::FunctionCallbackInfo<v8::Value>& args) {
|
| - CHECK_EQ(args.Length(), 1);
|
| - CHECK(args[0]->IsFunction());
|
| - ModuleSystem::NativesEnabledScope natives_enabled(context()->module_system());
|
| - context()->CallFunction(v8::Local<v8::Function>::Cast(args[0]));
|
| -}
|
| -
|
| } // namespace extensions
|
|
|