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

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

Issue 8135017: Refactor downloads into a ProfileKeyedService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed indentation of calls to DownloadServiceFactory. Created 9 years, 2 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: content/browser/download/download_manager.cc
diff --git a/content/browser/download/download_manager.cc b/content/browser/download/download_manager.cc
index 99036f4f896ebcee7acfb777e52fa034d8b64e46..d94ebf36f50a6c318e5f2f1c745207352c00fa0a 100644
--- a/content/browser/download/download_manager.cc
+++ b/content/browser/download/download_manager.cc
@@ -613,6 +613,12 @@ void DownloadManager::RemoveFromActiveList(DownloadItem* download) {
}
}
+void DownloadManager::SetDownloadManagerDelegate(
+ DownloadManagerDelegate* delegate) {
+ delegate_ = delegate;
+ delegate_->SetDownloadManager(this);
+}
+
void DownloadManager::UpdateDownloadProgress() {
delegate_->DownloadProgressUpdated();
}

Powered by Google App Engine
This is Rietveld 408576698