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

Unified Diff: chrome/browser/ui/webui/downloads_dom_handler.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/ui/webui/downloads_dom_handler.cc
===================================================================
--- chrome/browser/ui/webui/downloads_dom_handler.cc (revision 140592)
+++ chrome/browser/ui/webui/downloads_dom_handler.cc (working copy)
@@ -45,6 +45,7 @@
#include "chrome/browser/chromeos/extensions/file_manager_util.h"
#endif
+using content::BrowserContext;
using content::BrowserThread;
using content::UserMetricsAction;
@@ -101,8 +102,8 @@
// Figure out our parent DownloadManager, if any.
Profile* original_profile = profile->GetOriginalProfile();
if (original_profile != profile) {
- original_profile_download_manager_ = DownloadServiceFactory::GetForProfile(
- original_profile)->GetDownloadManager();
+ original_profile_download_manager_ =
+ BrowserContext::GetDownloadManager(original_profile);
}
}

Powered by Google App Engine
This is Rietveld 408576698