Index: chrome/renderer/extensions/extension_dispatcher.cc |
diff --git a/chrome/renderer/extensions/extension_dispatcher.cc b/chrome/renderer/extensions/extension_dispatcher.cc |
index 15312aec70db86cd8ad0c18b3dd43254bb254b93..791ae3ae1a2339cf7d0d850455dc6575525a35b4 100644 |
--- a/chrome/renderer/extensions/extension_dispatcher.cc |
+++ b/chrome/renderer/extensions/extension_dispatcher.cc |
@@ -12,6 +12,7 @@ |
#include "chrome/common/extensions/extension_permission_set.h" |
#include "chrome/common/url_constants.h" |
#include "chrome/renderer/extensions/chrome_app_bindings.h" |
+#include "chrome/renderer/extensions/chrome_webstore_bindings.h" |
#include "chrome/renderer/extensions/event_bindings.h" |
#include "chrome/renderer/extensions/extension_groups.h" |
#include "chrome/renderer/extensions/extension_process_bindings.h" |
@@ -85,6 +86,11 @@ void ExtensionDispatcher::WebKitInitialized() { |
RegisterExtension(extensions_v8::ChromeAppExtension::Get(this), false); |
+ if (CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kEnableInlineWebstoreInstall)) { |
+ RegisterExtension(extensions_v8::ChromeWebstoreExtension::Get(), false); |
+ } |
+ |
// Add v8 extensions related to chrome extensions. |
RegisterExtension(ExtensionProcessBindings::Get(this), true); |
RegisterExtension(JsonSchemaJsV8Extension::Get(), true); |