Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "chrome/browser/android/download/chrome_duplicate_download_infobar_dele gate.h" | 5 #include "chrome/browser/android/download/chrome_duplicate_download_infobar_dele gate.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/android/path_utils.h" | 9 #include "base/android/path_utils.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 107 } | 107 } |
| 108 | 108 |
| 109 void ChromeDuplicateDownloadInfoBarDelegate::InfoBarDismissed() { | 109 void ChromeDuplicateDownloadInfoBarDelegate::InfoBarDismissed() { |
| 110 Cancel(); | 110 Cancel(); |
| 111 } | 111 } |
| 112 | 112 |
| 113 bool ChromeDuplicateDownloadInfoBarDelegate::IsOffTheRecord() const { | 113 bool ChromeDuplicateDownloadInfoBarDelegate::IsOffTheRecord() const { |
| 114 return is_off_the_record_; | 114 return is_off_the_record_; |
| 115 } | 115 } |
| 116 | 116 |
| 117 std::string ChromeDuplicateDownloadInfoBarDelegate::GetDownloadGuid() const { | |
| 118 DCHECK(download_item_); | |
|
qinmin
2017/03/09 08:32:57
I am wondering whether you really need to do this
shaktisahu
2017/03/10 02:39:59
I see. The GUID is of the new created item whereas
| |
| 119 return download_item_->GetGuid(); | |
| 120 } | |
| 121 | |
| 117 } // namespace android | 122 } // namespace android |
| 118 } // namespace chrome | 123 } // namespace chrome |
| OLD | NEW |