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

Unified Diff: chrome/renderer/extensions/event_bindings.cc

Issue 159542: Add a WebKit API that registers a V8 extension to be loaded into content (Closed)
Patch Set: final Created 11 years, 5 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 | « chrome/renderer/extension_groups.h ('k') | chrome/renderer/extensions/extension_process_bindings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/event_bindings.cc
diff --git a/chrome/renderer/extensions/event_bindings.cc b/chrome/renderer/extensions/event_bindings.cc
index a5c69e413d72596c8d62cc3db2c02b1e22cf7edc..b44fe82b95d28cbe42a08959f0836df4240b052f 100644
--- a/chrome/renderer/extensions/event_bindings.cc
+++ b/chrome/renderer/extensions/event_bindings.cc
@@ -107,8 +107,9 @@ class ExtensionImpl : public ExtensionBase {
const char* EventBindings::kName = "chrome/EventBindings";
v8::Extension* EventBindings::Get() {
+ static v8::Extension* extension = new ExtensionImpl();
bindings_registered = true;
- return new ExtensionImpl();
+ return extension;
}
// static
« no previous file with comments | « chrome/renderer/extension_groups.h ('k') | chrome/renderer/extensions/extension_process_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698