Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(354)

Side by Side Diff: chrome/browser/android/download/chrome_duplicate_download_infobar_delegate.cc

Issue 2737723002: Downloads : Last access time update for NTP, duplicate infobar and notifications (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698