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

Unified Diff: content/browser/download/download_file.cc

Issue 8351052: Created a DownloadManager interface, for use in unit tests.. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed Mac & Clang issues. 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: content/browser/download/download_file.cc
diff --git a/content/browser/download/download_file.cc b/content/browser/download/download_file.cc
index 06f643ef08f085a9fe45ec568cff6f1bedcd5920..8b5c9e6bd04bb62446e9fd18be0a5081e4bcdf62 100644
--- a/content/browser/download/download_file.cc
+++ b/content/browser/download/download_file.cc
@@ -25,7 +25,7 @@ static const int kMaxUniqueFiles = 100;
DownloadFile::DownloadFile(const DownloadCreateInfo* info,
const DownloadRequestHandle& request_handle,
- DownloadManager* download_manager)
+ DownloadManagerInterface* download_manager)
: BaseFile(info->save_info.file_path,
info->url(),
info->referrer_url,
@@ -46,7 +46,7 @@ void DownloadFile::CancelDownloadRequest() {
request_handle_.CancelRequest();
}
-DownloadManager* DownloadFile::GetDownloadManager() {
+DownloadManagerInterface* DownloadFile::GetDownloadManager() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
return download_manager_.get();
}

Powered by Google App Engine
This is Rietveld 408576698