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

Unified Diff: chrome/browser/safe_browsing/download_protection_service.cc

Issue 8503018: Split DownloadItem into an ABC, an Impl, and a Mock. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: CamelCase Created 9 years, 1 month 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/safe_browsing/download_protection_service.cc
diff --git a/chrome/browser/safe_browsing/download_protection_service.cc b/chrome/browser/safe_browsing/download_protection_service.cc
index 756716e0dba2443ecf9e5304b3b375dd3f59fb7b..3ae6cb1c14f4965283a5f365c0304b2e6a0cbd93 100644
--- a/chrome/browser/safe_browsing/download_protection_service.cc
+++ b/chrome/browser/safe_browsing/download_protection_service.cc
@@ -117,11 +117,11 @@ DownloadProtectionService::DownloadInfo
DownloadProtectionService::DownloadInfo::FromDownloadItem(
const DownloadItem& item) {
DownloadInfo download_info;
- download_info.local_file = item.full_path();
- download_info.download_url_chain = item.url_chain();
- download_info.referrer_url = item.referrer_url();
+ download_info.local_file = item.GetFullPath();
+ download_info.download_url_chain = item.GetUrlChain();
+ download_info.referrer_url = item.GetReferrerUrl();
// TODO(bryner): Fill in the hash (we shouldn't compute it again)
- download_info.total_bytes = item.total_bytes();
+ download_info.total_bytes = item.GetTotalBytes();
// TODO(bryner): Populate user_initiated
return download_info;
}

Powered by Google App Engine
This is Rietveld 408576698