mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision 207871.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1281 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -15,8 +15,8 @@
|
||||
#include "base/file_util.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/path_service.h"
|
||||
#include "base/string_util.h"
|
||||
#include "base/utf_string_conversions.h"
|
||||
#include "base/strings/string_util.h"
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
#include "content/public/browser/browser_context.h"
|
||||
#include "content/public/browser/web_contents.h"
|
||||
#include "content/public/common/file_chooser_params.h"
|
||||
@@ -130,7 +130,7 @@ class CefBeforeDownloadCallbackImpl : public CefBeforeDownloadCallback {
|
||||
return;
|
||||
|
||||
DownloadItem* item = manager->GetDownload(download_id);
|
||||
if (!item || !item->IsInProgress())
|
||||
if (!item || item->GetState() != content::DownloadItem::IN_PROGRESS)
|
||||
return;
|
||||
|
||||
bool handled = false;
|
||||
@@ -215,7 +215,7 @@ class CefDownloadItemCallbackImpl : public CefDownloadItemCallback {
|
||||
|
||||
if (manager_) {
|
||||
DownloadItem* item = manager_->GetDownload(download_id_);
|
||||
if (item && item->IsInProgress())
|
||||
if (item && item->GetState() == content::DownloadItem::IN_PROGRESS)
|
||||
item->Cancel(true);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user