summaryrefslogtreecommitdiff
path: root/chromium/extensions/browser/content_hash_reader.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/extensions/browser/content_hash_reader.cc')
-rw-r--r--chromium/extensions/browser/content_hash_reader.cc13
1 files changed, 5 insertions, 8 deletions
diff --git a/chromium/extensions/browser/content_hash_reader.cc b/chromium/extensions/browser/content_hash_reader.cc
index c3fbbd17601..039fa53e9b3 100644
--- a/chromium/extensions/browser/content_hash_reader.cc
+++ b/chromium/extensions/browser/content_hash_reader.cc
@@ -73,15 +73,12 @@ bool ContentHashReader::Init() {
have_computed_hashes_ = true;
- // Extensions sometimes request resources that do not have an entry in
- // verified_contents.json. This can happen when an extension sends an XHR to a
- // resource.
if (!verified_contents.HasTreeHashRoot(relative_path_)) {
- // Making a request to a non-existent resource should not result in
- // content verification failure.
- if (!base::PathExists(extension_root_.Append(relative_path_)))
- file_missing_from_verified_contents_ = true;
-
+ // Extension is requesting a non-existent resource that does not have an
+ // entry in verified_contents.json. This can happen when an extension sends
+ // XHR to its non-existent resource. This should not result in content
+ // verification failure.
+ file_missing_from_verified_contents_ = true;
return false;
}