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

Unified Diff: content/browser/resource_context_impl.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/resource_context_impl.cc
diff --git a/content/browser/resource_context_impl.cc b/content/browser/resource_context_impl.cc
index e59692f3aaf417d5c8f56ad4b0c96c87e1ad1949..c5b48693b2290f82f72726deda3f746c6a5e1a05 100644
--- a/content/browser/resource_context_impl.cc
+++ b/content/browser/resource_context_impl.cc
@@ -18,6 +18,7 @@
#include "content/browser/tcmalloc_internals_request_job.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/storage_partition.h"
#include "content/public/common/url_constants.h"
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_context.h"
@@ -248,7 +249,9 @@ HostZoomMap* GetHostZoomMapForResourceContext(ResourceContext* context) {
}
void InitializeResourceContext(BrowserContext* browser_context) {
- ResourceContext* resource_context = browser_context->GetResourceContext();
+ ResourceContext* resource_context =
+ BrowserContext::GetDefaultStoragePartition(browser_context)->
+ GetResourceContext();
DCHECK(!resource_context->GetUserData(kIndexedDBContextKeyName));
resource_context->SetUserData(
« no previous file with comments | « content/browser/renderer_host/resource_dispatcher_host_unittest.cc ('k') | content/browser/storage_partition_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698