Commit f447fa2e authored by Jian Li's avatar Jian Li Committed by Commit Bot

Check for null web_contents in OfflinePageUtils::ScheduleDownload

Bug: 942426
Change-Id: I24f43ac82827633b6390e012b9a583b364c9167b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1532673Reviewed-by: default avatarPeter Williamson <petewil@chromium.org>
Commit-Queue: Jian Li <jianli@chromium.org>
Cr-Commit-Position: refs/heads/master@{#642672}
parent 33e789b9
...@@ -328,7 +328,8 @@ void OfflinePageUtils::ScheduleDownload(content::WebContents* web_contents, ...@@ -328,7 +328,8 @@ void OfflinePageUtils::ScheduleDownload(content::WebContents* web_contents,
const GURL& url, const GURL& url,
DownloadUIActionFlags ui_action, DownloadUIActionFlags ui_action,
const std::string& request_origin) { const std::string& request_origin) {
DCHECK(web_contents); if (!web_contents)
return;
// Ensure that the storage permission is granted since the archive file is // Ensure that the storage permission is granted since the archive file is
// going to be placed in the public directory. // going to be placed in the public directory.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment