Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(992)

Unified Diff: content/browser/download/save_package.cc

Issue 10891016: Remove all callers of Profile::GetResourceContext(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());
}
« no previous file with comments | « content/browser/download/download_manager_impl_unittest.cc ('k') | content/browser/plugin_data_remover_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698