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

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

Issue 2705283003: Added last_access_time to DownloadItem and History DB (Closed)
Patch Set: rebase origin/master Created 3 years, 10 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
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 2f2db42ae4ebdc0cd0ce393e18b05dbf26458734..05d8a522cc9a9776547cf42fe38c1988b8c53b26 100644
--- a/chrome/browser/ntp_snippets/fake_download_item.cc
+++ b/chrome/browser/ntp_snippets/fake_download_item.cc
@@ -80,7 +80,7 @@ bool FakeDownloadItem::GetFileExternallyRemoved() const {
return is_file_externally_removed_;
}
-void FakeDownloadItem::SetStartTime(const base::Time& start_time) {
+void FakeDownloadItem::SetStartTime(base::Time start_time) {
start_time_ = start_time;
}
@@ -88,7 +88,7 @@ base::Time FakeDownloadItem::GetStartTime() const {
return start_time_;
}
-void FakeDownloadItem::SetEndTime(const base::Time& end_time) {
+void FakeDownloadItem::SetEndTime(base::Time end_time) {
end_time_ = end_time;
}
@@ -363,6 +363,11 @@ bool FakeDownloadItem::GetOpened() const {
return false;
}
+base::Time FakeDownloadItem::GetLastAccessTime() const {
+ NOTREACHED();
+ return base::Time();
+}
+
content::BrowserContext* FakeDownloadItem::GetBrowserContext() const {
NOTREACHED();
return nullptr;
@@ -386,6 +391,10 @@ void FakeDownloadItem::SetOpened(bool opened) {
NOTREACHED();
}
+void FakeDownloadItem::SetLastAccessTime(base::Time time) {
+ NOTREACHED();
+}
+
void FakeDownloadItem::SetDisplayName(const base::FilePath& name) {
NOTREACHED();
}

Powered by Google App Engine
This is Rietveld 408576698