| Index: chrome/browser/tab_contents/render_view_context_menu.cc
|
| ===================================================================
|
| --- chrome/browser/tab_contents/render_view_context_menu.cc (revision 140592)
|
| +++ chrome/browser/tab_contents/render_view_context_menu.cc (working copy)
|
| @@ -93,6 +93,7 @@
|
| using WebKit::WebPluginAction;
|
| using WebKit::WebString;
|
| using WebKit::WebURL;
|
| +using content::BrowserContext;
|
| using content::ChildProcessSecurityPolicy;
|
| using content::DownloadManager;
|
| using content::DownloadUrlParameters;
|
| @@ -1520,8 +1521,7 @@
|
| const GURL& url = params_.link_url;
|
| content::DownloadSaveInfo save_info;
|
| save_info.prompt_for_save_location = true;
|
| - DownloadManager* dlm =
|
| - DownloadServiceFactory::GetForProfile(profile_)->GetDownloadManager();
|
| + DownloadManager* dlm = BrowserContext::GetDownloadManager(profile_);
|
| scoped_ptr<DownloadUrlParameters> dl_params(
|
| DownloadUrlParameters::FromWebContents(
|
| source_web_contents_, url, save_info));
|
| @@ -1548,8 +1548,7 @@
|
| if (entry)
|
| post_id = entry->GetPostID();
|
| }
|
| - DownloadManager* dlm =
|
| - DownloadServiceFactory::GetForProfile(profile_)->GetDownloadManager();
|
| + DownloadManager* dlm = BrowserContext::GetDownloadManager(profile_);
|
| scoped_ptr<DownloadUrlParameters> dl_params(
|
| DownloadUrlParameters::FromWebContents(
|
| source_web_contents_, url, save_info));
|
|
|