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

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

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
Index: chrome/browser/ntp_snippets/fake_download_item.h
diff --git a/chrome/browser/ntp_snippets/fake_download_item.h b/chrome/browser/ntp_snippets/fake_download_item.h
index c91dfd9e2655ba58a038192fac75aa8654695108..37e361462f16c4d278045612f56ce1a2c095da02 100644
--- a/chrome/browser/ntp_snippets/fake_download_item.h
+++ b/chrome/browser/ntp_snippets/fake_download_item.h
@@ -39,6 +39,9 @@ class FakeDownloadItem : public content::DownloadItem {
void SetId(uint32_t id);
uint32_t GetId() const override;
+ void SetGuid(const std::string& guid);
+ const std::string& GetGuid() const override;
+
void SetURL(const GURL& url);
const GURL& GetURL() const override;
@@ -73,7 +76,6 @@ class FakeDownloadItem : public content::DownloadItem {
void Remove() override;
void OpenDownload() override;
void ShowDownloadInShell() override;
- const std::string& GetGuid() const override;
content::DownloadInterruptReason GetLastReason() const override;
bool IsPaused() const override;
bool IsTemporary() const override;
@@ -129,6 +131,7 @@ class FakeDownloadItem : public content::DownloadItem {
private:
base::ObserverList<Observer> observers_;
uint32_t id_;
+ std::string guid_;
GURL url_;
base::FilePath file_path_;
bool is_file_externally_removed_;

Powered by Google App Engine
This is Rietveld 408576698