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

Unified Diff: chrome/browser/dom_ui/downloads_ui.cc

Issue 115804: Use the original profile for the downloads manager so that a download manager... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/downloads_ui.cc
===================================================================
--- chrome/browser/dom_ui/downloads_ui.cc (revision 16871)
+++ chrome/browser/dom_ui/downloads_ui.cc (working copy)
@@ -118,7 +118,8 @@
///////////////////////////////////////////////////////////////////////////////
DownloadsUI::DownloadsUI(TabContents* contents) : DOMUI(contents) {
- DownloadManager* dlm = GetProfile()->GetDownloadManager();
+ DownloadManager* dlm = GetProfile()->GetOriginalProfile()->
+ GetDownloadManager();
DownloadsDOMHandler* handler = new DownloadsDOMHandler(this, dlm);
AddMessageHandler(handler);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698