| Index: content/browser/download/save_package.cc
|
| ===================================================================
|
| --- content/browser/download/save_package.cc (revision 116798)
|
| +++ content/browser/download/save_package.cc (working copy)
|
| @@ -241,14 +241,7 @@
|
| // Init() can be called directly, or indirectly via GetSaveInfo(). In both
|
| // cases, we need file_manager_ to be initialized, so we do this first.
|
| void SavePackage::InternalInit() {
|
| - ResourceDispatcherHost* rdh =
|
| - content::GetContentClient()->browser()->GetResourceDispatcherHost();
|
| - if (!rdh) {
|
| - NOTREACHED();
|
| - return;
|
| - }
|
| -
|
| - file_manager_ = rdh->save_file_manager();
|
| + file_manager_ = ResourceDispatcherHost::Get()->save_file_manager();
|
| DCHECK(file_manager_);
|
|
|
| download_manager_ = web_contents()->GetBrowserContext()->GetDownloadManager();
|
|
|