| Index: components/history/core/browser/history_service.cc
|
| diff --git a/components/history/core/browser/history_service.cc b/components/history/core/browser/history_service.cc
|
| index 20b9e1935824d4597780bdb80f652e79cc61ed04..ef9fba194b415ea8af2b767ae64558dbba47f39c 100644
|
| --- a/components/history/core/browser/history_service.cc
|
| +++ b/components/history/core/browser/history_service.cc
|
| @@ -717,11 +717,14 @@ void HistoryService::QueryDownloads(const DownloadQueryCallback& callback) {
|
|
|
| // Handle updates for a particular download. This is a 'fire and forget'
|
| // operation, so we don't need to be called back.
|
| -void HistoryService::UpdateDownload(const DownloadRow& data) {
|
| +void HistoryService::UpdateDownload(
|
| + const DownloadRow& data,
|
| + bool should_commit_immediately) {
|
| DCHECK(backend_task_runner_) << "History service being called after cleanup";
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
| ScheduleTask(PRIORITY_NORMAL, base::Bind(&HistoryBackend::UpdateDownload,
|
| - history_backend_, data));
|
| + history_backend_, data,
|
| + should_commit_immediately));
|
| }
|
|
|
| void HistoryService::RemoveDownloads(const std::set<uint32_t>& ids) {
|
|
|