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

Unified Diff: content/browser/download/drag_download_file.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/browser/download/drag_download_file.cc
===================================================================
--- content/browser/download/drag_download_file.cc (revision 140592)
+++ content/browser/download/drag_download_file.cc (working copy)
@@ -16,6 +16,7 @@
#include "content/public/browser/download_url_parameters.h"
#include "net/base/file_stream.h"
+using content::BrowserContext;
using content::BrowserThread;
using content::DownloadItem;
using content::DownloadManager;
@@ -127,7 +128,8 @@
}
#endif
- download_manager_ = web_contents_->GetBrowserContext()->GetDownloadManager();
+ download_manager_ = BrowserContext::GetDownloadManager(
+ web_contents_->GetBrowserContext());
download_manager_observer_added_ = true;
download_manager_->AddObserver(this);

Powered by Google App Engine
This is Rietveld 408576698