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

Unified Diff: extensions/renderer/script_context.cc

Issue 2770403002: [Extensions Bindings] Remove ScriptContext::DispatchEvent (Closed)
Patch Set: Created 3 years, 9 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/script_context.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/script_context.cc
diff --git a/extensions/renderer/script_context.cc b/extensions/renderer/script_context.cc
index e5fb2d9228b16ec31c13df555e09da69bb8ca87e..151be3627ab51323b2298b2214c63999ccef3036 100644
--- a/extensions/renderer/script_context.cc
+++ b/extensions/renderer/script_context.cc
@@ -268,18 +268,6 @@ Feature::Availability ScriptContext::GetAvailability(
api_name, extension, context_type_, url(), check_alias);
}
-void ScriptContext::DispatchEvent(const char* event_name,
- v8::Local<v8::Array> args) const {
- DCHECK(thread_checker_.CalledOnValidThread());
- v8::HandleScope handle_scope(isolate());
- v8::Context::Scope context_scope(v8_context());
-
- v8::Local<v8::Value> argv[] = {v8::String::NewFromUtf8(isolate(), event_name),
- args};
- module_system_->CallModuleMethodSafe(kEventBindings, "dispatchEvent",
- arraysize(argv), argv);
-}
-
std::string ScriptContext::GetContextTypeDescription() const {
DCHECK(thread_checker_.CalledOnValidThread());
return GetContextTypeDescriptionString(context_type_);
« no previous file with comments | « extensions/renderer/script_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698