| Index: chrome/browser/download/chrome_download_manager_delegate.cc
|
| diff --git a/chrome/browser/download/chrome_download_manager_delegate.cc b/chrome/browser/download/chrome_download_manager_delegate.cc
|
| index 528520cca56f5f5738c2a41d3ae1c7ba98965197..d4e68bf5402adef4430445f5963d054046e348f6 100644
|
| --- a/chrome/browser/download/chrome_download_manager_delegate.cc
|
| +++ b/chrome/browser/download/chrome_download_manager_delegate.cc
|
| @@ -511,12 +511,11 @@ void ChromeDownloadManagerDelegate::RemoveItemsFromPersistentStoreBetween(
|
| download_history_->RemoveEntriesBetween(remove_begin, remove_end);
|
| }
|
|
|
| -void ChromeDownloadManagerDelegate::GetSaveDir(WebContents* web_contents,
|
| +void ChromeDownloadManagerDelegate::GetSaveDir(BrowserContext* browser_context,
|
| FilePath* website_save_dir,
|
| FilePath* download_save_dir,
|
| bool* skip_dir_check) {
|
| - Profile* profile =
|
| - Profile::FromBrowserContext(web_contents->GetBrowserContext());
|
| + Profile* profile = Profile::FromBrowserContext(browser_context);
|
| PrefService* prefs = profile->GetPrefs();
|
|
|
| // Check whether the preference has the preferred directory for saving file.
|
|
|