Index: content/browser/browser_context.cc |
diff --git a/content/browser/browser_context.cc b/content/browser/browser_context.cc |
index d56e797c7e2c7b7b29529742f01de6ac9a09e5a2..cabf7a21c79637dc667fe6210dcc3f92130b8423 100644 |
--- a/content/browser/browser_context.cc |
+++ b/content/browser/browser_context.cc |
@@ -79,7 +79,7 @@ void CreateQuotaManagerAndClients(BrowserContext* context) { |
kAppCacheServicKeyName, |
new UserDataAdapter<ChromeAppCacheService>(appcache_service)); |
- InitializeResourceContext(context); |
+ EnsureResourceContextInitialized(context); |
// Check first to avoid memory leak in unittests. |
if (BrowserThread::IsMessageLoopValid(BrowserThread::IO)) { |
@@ -125,9 +125,7 @@ FileSystemContext* BrowserContext::GetFileSystemContext( |
} |
void BrowserContext::EnsureResourceContextInitialized(BrowserContext* context) { |
- if (context->GetResourceContext()->GetUserData(kWebKitContextKeyName)) |
- return; |
- InitializeResourceContext(context); |
+ content::EnsureResourceContextInitialized(context); |
} |
BrowserContext::~BrowserContext() { |