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

Unified Diff: chrome/browser/download/download_request_handle.cc

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: browser_context Created 9 years, 5 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/download/download_request_handle.cc
diff --git a/chrome/browser/download/download_request_handle.cc b/chrome/browser/download/download_request_handle.cc
index aaf66e9b451464ead50bc012eee4d1159786b2c7..558ea27f237cdeac14f6c45810e50ac50f741976 100644
--- a/chrome/browser/download/download_request_handle.cc
+++ b/chrome/browser/download/download_request_handle.cc
@@ -61,7 +61,7 @@ DownloadManager* DownloadRequestHandle::GetDownloadManager() const {
if (!contents)
return NULL;
- Profile* profile = contents->profile();
+ Profile* profile = static_cast<Profile*>(contents->browser_context());
if (!profile)
return NULL;

Powered by Google App Engine
This is Rietveld 408576698