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

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

Issue 7621032: Initial inline web store install bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback. Created 9 years, 4 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
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);
« no previous file with comments | « chrome/renderer/extensions/chrome_webstore_bindings.cc ('k') | chrome/renderer/extensions/extension_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698