Fix Widevine CDM download (issue #1950)

This commit is contained in:
Marshall Greenblatt
2016-07-15 13:14:56 -04:00
parent cf4a50b116
commit 62d177455b
2 changed files with 14 additions and 9 deletions

View File

@ -119,7 +119,7 @@ bool CefExtensionsBrowserClient::AllowCrossRendererResourceLoad(
// AllowCrossRendererResourceLoad() in https://crrev.com/5cf9d45c. Figure out
// why permission is not being granted based on "web_accessible_resources"
// specified in the PDF extension manifest.json file.
if (extension->id() == extension_misc::kPdfExtensionId)
if (extension && extension->id() == extension_misc::kPdfExtensionId)
return true;
bool allowed = false;