Avoid a crash when starting a download by disallowing downloads
Chromium crashes when starting a download if a content::DownloadManagerDelegate is not provided. We now provide a default implementation of content::DownloadManagerDelegate which disallows all downloads.
This commit is contained in:
parent
bacf11d53f
commit
56b904947b
5 changed files with 38 additions and 1 deletions
|
@ -13,6 +13,7 @@ class PrefService;
|
|||
|
||||
namespace brightray {
|
||||
|
||||
class DownloadManagerDelegate;
|
||||
class NetworkDelegate;
|
||||
class URLRequestContextGetter;
|
||||
|
||||
|
@ -55,6 +56,7 @@ private:
|
|||
scoped_ptr<ResourceContext> resource_context_;
|
||||
scoped_refptr<URLRequestContextGetter> url_request_getter_;
|
||||
scoped_ptr<PrefService> prefs_;
|
||||
scoped_ptr<DownloadManagerDelegate> download_manager_delegate_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(BrowserContext);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue