Chromium Code Reviews| Index: chrome/common/extensions/extension.cc |
| diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc |
| index 899720410f8a9ce238839b1ae0e51ba74107c200..238352d5dc936a89c96edcbb05277ba7c20f8618 100644 |
| --- a/chrome/common/extensions/extension.cc |
| +++ b/chrome/common/extensions/extension.cc |
| @@ -3231,6 +3231,17 @@ bool Extension::HasHostPermission(const GURL& url) const { |
| location() != Extension::COMPONENT) { |
| return false; |
| } |
| + if (url.SchemeIs(chrome::kExtensionScheme) && |
|
Aaron Boodman
2012/05/09 05:32:38
I think you can replace this entire new hunk with:
Aaron Boodman
2012/05/09 18:28:44
If this check were not here, are there multiple pl
benjhayden
2012/05/09 21:36:42
download() is the only function that will accept a
|
| + url.host() == id()) { |
| + return true; |
| + } |
| + if (url.inner_url() != NULL && |
| + url.inner_url()->is_valid() && |
| + url.SchemeIsFileSystem() && |
| + url.inner_url()->SchemeIs(chrome::kExtensionScheme) && |
| + url.inner_url()->host() == id()) { |
| + return true; |
| + } |
| base::AutoLock auto_lock(runtime_data_lock_); |
| return runtime_data_.GetActivePermissions()-> |