| Index: chrome/browser/download/download_request_limiter.cc
|
| diff --git a/chrome/browser/download/download_request_limiter.cc b/chrome/browser/download/download_request_limiter.cc
|
| index 678e2f053647cd2f6bd8d332f5a9a9294ce5c69c..32fb1181bfdf6dc49c29ca5bcf6eba24a76166e9 100644
|
| --- a/chrome/browser/download/download_request_limiter.cc
|
| +++ b/chrome/browser/download/download_request_limiter.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "base/bind.h"
|
| #include "base/stl_util.h"
|
| +#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
|
| #include "chrome/browser/content_settings/tab_specific_content_settings.h"
|
| #include "chrome/browser/download/download_permission_request.h"
|
| #include "chrome/browser/infobars/infobar_service.h"
|
| @@ -360,8 +361,9 @@ void DownloadRequestLimiter::OnCanDownloadDecided(
|
|
|
| HostContentSettingsMap* DownloadRequestLimiter::GetContentSettings(
|
| content::WebContents* contents) {
|
| - return content_settings_ ? content_settings_ : Profile::FromBrowserContext(
|
| - contents->GetBrowserContext())->GetHostContentSettingsMap();
|
| + return content_settings_ ? content_settings_ :
|
| + HostContentSettingsMapFactory::GetForProfile(
|
| + Profile::FromBrowserContext(contents->GetBrowserContext()));
|
| }
|
|
|
| void DownloadRequestLimiter::CanDownloadImpl(
|
|
|