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

Unified Diff: chrome/renderer/user_script_slave.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/user_script_slave.cc
diff --git a/chrome/renderer/user_script_slave.cc b/chrome/renderer/user_script_slave.cc
index 4015484db0cfa1054e15136776245309e1f32782..11ad1f222a7ae7f4db8e3ddf6afcb2a9af7060b2 100644
--- a/chrome/renderer/user_script_slave.cc
+++ b/chrome/renderer/user_script_slave.cc
@@ -14,7 +14,6 @@
#include "base/string_util.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/extensions/extension.h"
-#include "chrome/common/extensions/extension_constants.h"
#include "chrome/renderer/extension_groups.h"
#include "chrome/renderer/render_thread.h"
#include "googleurl/src/gurl.h"
@@ -151,7 +150,7 @@ bool UserScriptSlave::InjectScripts(WebFrame* frame,
// Don't inject user scripts into the gallery itself. This prevents
// a user script from removing the "report abuse" link, for example.
- if (frame_url.host() == GURL(extension_urls::kGalleryBrowsePrefix).host())
+ if (frame_url.host() == GURL(Extension::ChromeStoreURL()).host())
return true;
PerfTimer timer;
« chrome/browser/extensions/crx_installer.cc ('K') | « chrome/renderer/render_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698