| Index: chrome/browser/extensions/api/downloads/downloads_api.cc
|
| diff --git a/chrome/browser/extensions/api/downloads/downloads_api.cc b/chrome/browser/extensions/api/downloads/downloads_api.cc
|
| index 43b6b43c4c0a768ec146c099412e1dffffc7f09e..076d35e30de329d4d9e0b21b0d5e4dfb303a42b8 100644
|
| --- a/chrome/browser/extensions/api/downloads/downloads_api.cc
|
| +++ b/chrome/browser/extensions/api/downloads/downloads_api.cc
|
| @@ -48,6 +48,7 @@
|
| #include "content/public/browser/render_view_host.h"
|
| #include "content/public/browser/resource_context.h"
|
| #include "content/public/browser/resource_dispatcher_host.h"
|
| +#include "content/public/browser/storage_partition.h"
|
| #include "net/base/load_flags.h"
|
| #include "net/http/http_util.h"
|
| #include "net/url_request/url_request.h"
|
| @@ -554,7 +555,8 @@ bool DownloadsDownloadFunction::RunImpl() {
|
| download_url,
|
| render_view_host()->GetProcess()->GetID(),
|
| render_view_host()->GetRoutingID(),
|
| - current_profile->GetResourceContext(),
|
| + BrowserContext::GetDefaultStoragePartition(current_profile)->
|
| + GetResourceContext(),
|
| save_info));
|
|
|
| if (options.headers.get()) {
|
|
|