Index: chrome/browser/tab_contents/render_view_context_menu.cc |
diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc b/chrome/browser/tab_contents/render_view_context_menu.cc |
index 60b2554b497dab70e8774e64f4ed11a02cbd8bfb..0883bf38ad63e6c139e013c8b2b429b300598c10 100644 |
--- a/chrome/browser/tab_contents/render_view_context_menu.cc |
+++ b/chrome/browser/tab_contents/render_view_context_menu.cc |
@@ -20,6 +20,8 @@ |
#include "chrome/browser/autocomplete/autocomplete_match.h" |
#include "chrome/browser/browser_process.h" |
#include "chrome/browser/debugger/devtools_window.h" |
+#include "chrome/browser/download/download_service.h" |
+#include "chrome/browser/download/download_service_factory.h" |
#include "chrome/browser/extensions/extension_event_router.h" |
#include "chrome/browser/extensions/extension_service.h" |
#include "chrome/browser/google/google_util.h" |
@@ -1504,7 +1506,8 @@ void RenderViewContextMenu::ExecuteCommand(int id, int event_flags) { |
const GURL& url = |
(id == IDC_CONTENT_CONTEXT_SAVELINKAS ? params_.link_url : |
params_.src_url); |
- DownloadManager* dlm = profile_->GetDownloadManager(); |
+ DownloadManager* dlm = |
+ DownloadServiceFactory::GetForProfile(profile_)->GetDownloadManager(); |
dlm->DownloadUrl(url, referrer, params_.frame_charset, |
source_tab_contents_); |
break; |