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; |