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

Unified Diff: content/browser/web_contents/web_contents_impl.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/web_contents/web_contents_impl.cc
===================================================================
--- content/browser/web_contents/web_contents_impl.cc (revision 140592)
+++ content/browser/web_contents/web_contents_impl.cc (working copy)
@@ -122,6 +122,7 @@
// the user goes back. The process only stays live if another tab is using
// it, but if so, the existing frame relationships will be maintained.
+using content::BrowserContext;
using content::DevToolsAgentHost;
using content::DevToolsAgentHostRegistry;
using content::DevToolsManagerImpl;
@@ -3043,7 +3044,8 @@
void WebContentsImpl::SaveURL(const GURL& url,
const content::Referrer& referrer,
bool is_main_frame) {
- DownloadManager* dlm = GetBrowserContext()->GetDownloadManager();
+ DownloadManager* dlm =
+ BrowserContext::GetDownloadManager(GetBrowserContext());
if (!dlm)
return;
int64 post_id = -1;

Powered by Google App Engine
This is Rietveld 408576698