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

Unified Diff: chrome/common/extensions/extension.cc

Issue 10916305: Move shared file type images into chrome://theme/ scheme (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase to r156819 (CL 10910202) Created 8 years, 3 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/common/extensions/extension.cc
diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc
index 78dcdffa8e7eead4fa80b110aa74f15d102e4386..722625036fa8cddd0a3c8646c5ca22826a4ad324 100644
--- a/chrome/common/extensions/extension.cc
+++ b/chrome/common/extensions/extension.cc
@@ -3491,6 +3491,7 @@ const URLPatternSet& Extension::GetEffectiveHostPermissions() const {
bool Extension::HasHostPermission(const GURL& url) const {
if (url.SchemeIs(chrome::kChromeUIScheme) &&
url.host() != chrome::kChromeUIFaviconHost &&
+ url.host() != chrome::kChromeUIThemeHost &&
asargent_no_longer_on_chrome 2012/09/14 22:01:01 Are you sure you want to let non-component extensi
zel 2012/09/14 22:29:25 No, we don't, I misinterpreted this if statement.
benrg 2012/09/14 22:38:16 Done.
url.host() != chrome::kChromeUIThumbnailHost &&
location() != Extension::COMPONENT) {
return false;

Powered by Google App Engine
This is Rietveld 408576698