Windows: Fix crashes when dragging an image with OSR enabled (issue #2525)

This commit is contained in:
Marshall Greenblatt
2018-10-10 14:44:02 +03:00
parent c8ac6c879d
commit 924c2e339e
2 changed files with 1 additions and 4 deletions

View File

@ -96,9 +96,6 @@ CefString CefDragDataImpl::GetFragmentBaseURL() {
CefString CefDragDataImpl::GetFileName() {
base::AutoLock lock_scope(lock_);
if (data_.file_contents_content_disposition.empty())
return CefString();
base::Optional<base::FilePath> filename =
data_.GetSafeFilenameForImageFileContents();
return filename ? CefString(filename->value()) : CefString();