Index: chrome/browser/profiles/profile.cc |
diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc |
index 85bbef221114ca4bffbd2ebc594c1060244f0d5b..b329ca44a6bdaeead51f8ff7b2ab0848a4bae1d9 100644 |
--- a/chrome/browser/profiles/profile.cc |
+++ b/chrome/browser/profiles/profile.cc |
@@ -561,11 +561,7 @@ class OffTheRecordProfileImpl : public Profile, |
} |
virtual WebKitContext* GetWebKitContext() { |
- if (!webkit_context_.get()) { |
- webkit_context_ = new WebKitContext( |
- IsOffTheRecord(), GetPath(), GetExtensionSpecialStoragePolicy(), |
- false); |
- } |
+ CreateQuotaManagerAndClients(); |
return webkit_context_.get(); |
} |
@@ -714,6 +710,10 @@ class OffTheRecordProfileImpl : public Profile, |
quota_manager_->proxy(), |
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); |
appcache_service_ = new ChromeAppCacheService(quota_manager_->proxy()); |
+ webkit_context_ = new WebKitContext( |
+ IsOffTheRecord(), GetPath(), GetExtensionSpecialStoragePolicy(), |
+ false, quota_manager_->proxy(), |
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::WEBKIT)); |
BrowserThread::PostTask( |
michaeln
2011/05/26 03:48:41
since this PostTask is really part of the appcache
dgrogan
2011/05/26 05:41:19
Done.
|
BrowserThread::IO, FROM_HERE, |
NewRunnableMethod( |