Commit f24c2132 authored by Darwin Huang's avatar Darwin Huang Committed by Commit Bot

Pepper: Ensure weak pointer is still valid before use.

Bug: 1146675
Change-Id: I382dcb5c0b09a26e3c397ebef46947f626e2aef9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2527065Reviewed-by: default avatarBill Budge <bbudge@chromium.org>
Commit-Queue: Darwin Huang <huangdarwin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#825558}
parent f1f883b4
...@@ -247,7 +247,12 @@ void PepperFileIOHost::GotUIThreadStuffForInternalFileSystems( ...@@ -247,7 +247,12 @@ void PepperFileIOHost::GotUIThreadStuffForInternalFileSystems(
return; return;
} }
DCHECK(file_system_host_.get()); if (!file_system_host_.get()) {
reply_context.params.set_result(PP_ERROR_FAILED);
SendOpenErrorReply(reply_context);
return;
}
DCHECK(file_system_host_->GetFileSystemOperationRunner()); DCHECK(file_system_host_->GetFileSystemOperationRunner());
file_system_host_->GetFileSystemOperationRunner()->OpenFile( file_system_host_->GetFileSystemOperationRunner()->OpenFile(
......
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