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

Unified Diff: extensions/renderer/v8_context_native_handler.cc

Issue 2409723002: Remove chrome.test.runWithNativesEnabled (Closed)
Patch Set: Created 4 years, 2 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 | « extensions/renderer/v8_context_native_handler.h ('k') | extensions/test/data/api_test_base_unittest.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « extensions/renderer/v8_context_native_handler.h ('k') | extensions/test/data/api_test_base_unittest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698