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

Unified Diff: chrome/browser/ntp_snippets/fake_download_item.cc

Issue 2737723002: Downloads : Last access time update for NTP, duplicate infobar and notifications (Closed)
Patch Set: more 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ntp_snippets/fake_download_item.h ('k') | components/ntp_snippets/content_suggestion.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ntp_snippets/fake_download_item.cc
diff --git a/chrome/browser/ntp_snippets/fake_download_item.cc b/chrome/browser/ntp_snippets/fake_download_item.cc
index 05d8a522cc9a9776547cf42fe38c1988b8c53b26..39eb275dcdf729f7b35f5ce500ae73e599fcdf08 100644
--- a/chrome/browser/ntp_snippets/fake_download_item.cc
+++ b/chrome/browser/ntp_snippets/fake_download_item.cc
@@ -55,6 +55,14 @@ uint32_t FakeDownloadItem::GetId() const {
return id_;
}
+void FakeDownloadItem::SetGuid(const std::string& guid) {
+ guid_ = guid;
+}
+
+const std::string& FakeDownloadItem::GetGuid() const {
+ return guid_;
+}
+
void FakeDownloadItem::SetURL(const GURL& url) {
url_ = url;
}
@@ -156,11 +164,6 @@ void FakeDownloadItem::ShowDownloadInShell() {
NOTREACHED();
}
-const std::string& FakeDownloadItem::GetGuid() const {
- NOTREACHED();
- return dummy_string;
-}
-
content::DownloadInterruptReason FakeDownloadItem::GetLastReason() const {
NOTREACHED();
return content::DownloadInterruptReason();
« no previous file with comments | « chrome/browser/ntp_snippets/fake_download_item.h ('k') | components/ntp_snippets/content_suggestion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698