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

Unified Diff: chrome/renderer/render_view.cc

Issue 2855009: Only allow installation of extensions/apps with gallery update url via download from gallery (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: name change Created 10 years, 6 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/render_view.cc
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index a8d5ab2055536d1ef23083304b8efa01bb329cf3..869065a2d3bb6d1b53a7878ac852b80ccba3fdee 100755
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -29,7 +29,7 @@
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
-#include "chrome/common/extensions/extension_constants.h"
+#include "chrome/common/extensions/extension.h"
#include "chrome/common/jstemplate_builder.h"
#include "chrome/common/page_zoom.h"
#include "chrome/common/pepper_plugin_registry.h"
@@ -4930,7 +4930,7 @@ void RenderView::ExecuteCodeImpl(WebFrame* frame,
const ViewMsg_ExecuteCode_Params& params) {
// Don't execute scripts in gallery pages.
GURL frame_url = GURL(frame->url());
- if (frame_url.host() == GURL(extension_urls::kGalleryBrowsePrefix).host()) {
+ if (frame_url.host() == GURL(Extension::ChromeStoreURL()).host()) {
Send(new ViewMsg_ExecuteCodeFinished(routing_id_, params.request_id, true));
return;
}

Powered by Google App Engine
This is Rietveld 408576698