Index: content/browser/download/save_package.cc |
diff --git a/content/browser/download/save_package.cc b/content/browser/download/save_package.cc |
index 0ef878efa2581dca506cbbea68a4b196f860784f..98ebe96e2d558c2924fa10520b5fd93598a1efa3 100644 |
--- a/content/browser/download/save_package.cc |
+++ b/content/browser/download/save_package.cc |
@@ -36,6 +36,7 @@ |
#include "content/public/browser/download_manager_delegate.h" |
#include "content/public/browser/navigation_entry.h" |
#include "content/public/browser/resource_context.h" |
+#include "content/public/browser/storage_partition.h" |
#include "content/public/browser/web_contents.h" |
#include "content/public/common/url_constants.h" |
#include "net/base/io_buffer.h" |
@@ -867,8 +868,9 @@ void SavePackage::SaveNextFile(bool process_all_remaining_items) { |
routing_id(), |
save_item->save_source(), |
save_item->full_path(), |
- web_contents()-> |
- GetBrowserContext()->GetResourceContext(), |
+ content::BrowserContext::GetDefaultStoragePartition( |
+ web_contents()->GetBrowserContext())-> |
+ GetResourceContext(), |
this); |
} while (process_all_remaining_items && waiting_item_queue_.size()); |
} |