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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 10535026: Move creation and ownership of DownloadManager from the embedder to content. This matches all the o… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros compile Created 8 years, 6 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/profiles/profile_impl.cc
===================================================================
--- chrome/browser/profiles/profile_impl.cc (revision 140592)
+++ chrome/browser/profiles/profile_impl.cc (working copy)
@@ -107,7 +107,7 @@
using base::Time;
using base::TimeDelta;
using content::BrowserThread;
-using content::DownloadManager;
+using content::DownloadManagerDelegate;
using content::HostZoomMap;
using content::UserMetricsAction;
@@ -831,8 +831,9 @@
return shortcuts_backend_.get();
}
-DownloadManager* ProfileImpl::GetDownloadManager() {
- return DownloadServiceFactory::GetForProfile(this)->GetDownloadManager();
+DownloadManagerDelegate* ProfileImpl::GetDownloadManagerDelegate() {
+ return DownloadServiceFactory::GetForProfile(this)->
+ GetDownloadManagerDelegate();
}
bool ProfileImpl::DidLastSessionExitCleanly() {

Powered by Google App Engine
This is Rietveld 408576698