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

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

Issue 7640021: Move some Chrome-specific code paths out of DownloadManager and into the delegate. Getting rid of... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
« no previous file with comments | « chrome/browser/download/mock_download_manager_delegate.cc ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile.cc
===================================================================
--- chrome/browser/profiles/profile.cc (revision 96577)
+++ chrome/browser/profiles/profile.cc (working copy)
@@ -464,9 +464,9 @@
virtual DownloadManager* GetDownloadManager() {
if (!download_manager_.get()) {
- download_manager_delegate_.reset(new ChromeDownloadManagerDelegate());
+ download_manager_delegate_ = new ChromeDownloadManagerDelegate();
scoped_refptr<DownloadManager> dlm(
- new DownloadManager(download_manager_delegate_.get(),
+ new DownloadManager(download_manager_delegate_,
g_browser_process->download_status_updater()));
download_manager_delegate_->set_download_manager(dlm);
dlm->Init(this);
@@ -795,7 +795,7 @@
// Used so that Chrome code can influence how content module's DownloadManager
// functions.
- scoped_ptr<ChromeDownloadManagerDelegate> download_manager_delegate_;
+ scoped_refptr<ChromeDownloadManagerDelegate> download_manager_delegate_;
// The download manager that only stores downloaded items in memory.
scoped_refptr<DownloadManager> download_manager_;
« no previous file with comments | « chrome/browser/download/mock_download_manager_delegate.cc ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698