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

Unified Diff: content/shell/shell_browser_context.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: content/shell/shell_browser_context.cc
===================================================================
--- content/shell/shell_browser_context.cc (revision 140592)
+++ content/shell/shell_browser_context.cc (working copy)
@@ -126,15 +126,9 @@
return false;
}
-DownloadManager* ShellBrowserContext::GetDownloadManager() {
- if (!download_manager_.get()) {
- download_manager_delegate_ = new ShellDownloadManagerDelegate();
- download_manager_ = DownloadManager::Create(download_manager_delegate_,
- NULL);
- download_manager_delegate_->SetDownloadManager(download_manager_.get());
- download_manager_->Init(this);
- }
- return download_manager_.get();
+DownloadManagerDelegate* ShellBrowserContext::GetDownloadManagerDelegate() {
+ download_manager_delegate_ = new ShellDownloadManagerDelegate();
+ return download_manager_delegate_.get();
}
net::URLRequestContextGetter* ShellBrowserContext::GetRequestContext() {

Powered by Google App Engine
This is Rietveld 408576698