Index: chrome/renderer/extensions/dispatcher.cc |
diff --git a/chrome/renderer/extensions/dispatcher.cc b/chrome/renderer/extensions/dispatcher.cc |
index a55632f067440c3ac29ce89955defe6f01159700..39a7c26873787c4300c90401f5fa8928157c1868 100644 |
--- a/chrome/renderer/extensions/dispatcher.cc |
+++ b/chrome/renderer/extensions/dispatcher.cc |
@@ -995,9 +995,9 @@ void Dispatcher::DidCreateScriptContext( |
switch (context_type) { |
case Feature::UNSPECIFIED_CONTEXT: |
case Feature::WEB_PAGE_CONTEXT: |
- // TODO(kalman): see comment below about ExtensionAPI. |
- InstallBindings(module_system, v8_context, "app"); |
- InstallBindings(module_system, v8_context, "webstore"); |
+ RegisterBinding("app", context); |
+ RegisterBinding("runtime", context); // for connect() and sendMessage() |
+ RegisterBinding("webstore", context); |
break; |
case Feature::BLESSED_EXTENSION_CONTEXT: |
case Feature::UNBLESSED_EXTENSION_CONTEXT: |