| Index: chrome/browser/download/download_prefs.cc
|
| ===================================================================
|
| --- chrome/browser/download/download_prefs.cc (revision 140592)
|
| +++ chrome/browser/download/download_prefs.cc (working copy)
|
| @@ -31,6 +31,7 @@
|
| #include "chrome/browser/chromeos/gdata/gdata_util.h"
|
| #endif
|
|
|
| +using content::BrowserContext;
|
| using content::BrowserThread;
|
| using content::DownloadManager;
|
|
|
| @@ -116,11 +117,8 @@
|
|
|
| // static
|
| DownloadPrefs* DownloadPrefs::FromBrowserContext(
|
| - content::BrowserContext* browser_context) {
|
| - Profile* profile = static_cast<Profile*>(browser_context);
|
| - DownloadService* download_service =
|
| - DownloadServiceFactory::GetForProfile(profile);
|
| - return FromDownloadManager(download_service->GetDownloadManager());
|
| + content::BrowserContext* context) {
|
| + return FromDownloadManager(BrowserContext::GetDownloadManager(context));
|
| }
|
|
|
| bool DownloadPrefs::PromptForDownload() const {
|
|
|