summaryrefslogtreecommitdiffstats
path: root/extensions/browser
diff options
context:
space:
mode:
authordpolukhin@chromium.org <dpolukhin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-26 13:04:47 +0000
committerdpolukhin@chromium.org <dpolukhin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-26 13:04:47 +0000
commit07a20e1eced09635f0ce0b80cbf927870700f177 (patch)
tree8242ef493d0d710f61e19390059521ccb5fedc8f /extensions/browser
parenta20a31ccc9c1fff1700110ad03206c50a54fe686 (diff)
downloadchromium_src-07a20e1eced09635f0ce0b80cbf927870700f177.zip
chromium_src-07a20e1eced09635f0ce0b80cbf927870700f177.tar.gz
chromium_src-07a20e1eced09635f0ce0b80cbf927870700f177.tar.bz2
Fix crash in ContentVerifier::ShouldVerifyAnyPaths when deleagte_ is NULL
My previous patch removed this check because I thought that all code paths have such check but it is not the case so I returned this check. BUG=388797 TBR= asargent@chromium.org TEST=N/A Review URL: https://codereview.chromium.org/352633008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279992 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/browser')
-rw-r--r--extensions/browser/content_verifier.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/browser/content_verifier.cc b/extensions/browser/content_verifier.cc
index 97e2de2..9653435 100644
--- a/extensions/browser/content_verifier.cc
+++ b/extensions/browser/content_verifier.cc
@@ -124,7 +124,7 @@ void ContentVerifier::OnFetchComplete(
bool ContentVerifier::ShouldVerifyAnyPaths(
const Extension* extension,
const std::set<base::FilePath>& relative_paths) {
- if (!extension || !extension->version())
+ if (!delegate_ || !extension || !extension->version())
return false;
ContentVerifierDelegate::Mode mode = delegate_->ShouldBeVerified(*extension);