| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/download/download_manager_impl.h" | 5 #include "content/browser/download/download_manager_impl.h" |
| 6 | 6 |
| 7 #include <iterator> | 7 #include <iterator> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 DownloadItem::kUninitializedHandle); | 832 DownloadItem::kUninitializedHandle); |
| 833 } | 833 } |
| 834 } | 834 } |
| 835 | 835 |
| 836 void DownloadManagerImpl::DownloadRenamedToFinalName( | 836 void DownloadManagerImpl::DownloadRenamedToFinalName( |
| 837 DownloadItemImpl* download) { | 837 DownloadItemImpl* download) { |
| 838 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 838 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 839 // If the rename failed, we processed an interrupt before we get here. | 839 // If the rename failed, we processed an interrupt before we get here. |
| 840 if (delegate_) { | 840 if (delegate_) { |
| 841 delegate_->UpdatePathForItemInPersistentStore( | 841 delegate_->UpdatePathForItemInPersistentStore( |
| 842 download, download->GetFullPath()); | 842 download, download->GetTargetFilePath(), download->GetFullPath()); |
| 843 } | 843 } |
| 844 } | 844 } |
| 845 | 845 |
| 846 } // namespace content | 846 } // namespace content |
| OLD | NEW |