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

Unified Diff: content/browser/download/download_request_handle.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/download_request_handle.cc
===================================================================
--- content/browser/download/download_request_handle.cc (revision 140592)
+++ content/browser/download/download_request_handle.cc (working copy)
@@ -11,6 +11,7 @@
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
+using content::BrowserContext;
using content::BrowserThread;
using content::DownloadManager;
using content::RenderViewHostImpl;
@@ -56,7 +57,7 @@
content::BrowserContext* context = rph->GetBrowserContext();
if (context == NULL)
return NULL;
- return context->GetDownloadManager();
+ return BrowserContext::GetDownloadManager(context);
}
void DownloadRequestHandle::PauseRequest() const {

Powered by Google App Engine
This is Rietveld 408576698