| Index: chrome/browser/profiles/profile_impl.cc
|
| diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
|
| index 3ed5116895a0c3c3b2ce83d65d060b727614d369..4780570a24d91c57b18bf92934ee6a1c6246ab83 100644
|
| --- a/chrome/browser/profiles/profile_impl.cc
|
| +++ b/chrome/browser/profiles/profile_impl.cc
|
| @@ -1306,6 +1306,7 @@ void ProfileImpl::CreateQuotaManagerAndClients() {
|
| if (quota_manager_.get()) {
|
| DCHECK(file_system_context_.get());
|
| DCHECK(db_tracker_.get());
|
| + DCHECK(webkit_context_.get());
|
| return;
|
| }
|
|
|
| @@ -1329,6 +1330,10 @@ void ProfileImpl::CreateQuotaManagerAndClients() {
|
| GetPath(), IsOffTheRecord(), GetExtensionSpecialStoragePolicy(),
|
| quota_manager_->proxy(),
|
| BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE));
|
| + webkit_context_ = new WebKitContext(
|
| + IsOffTheRecord(), GetPath(), GetExtensionSpecialStoragePolicy(),
|
| + clear_local_state_on_exit_, quota_manager_->proxy(),
|
| + BrowserThread::GetMessageLoopProxyForThread(BrowserThread::WEBKIT));
|
| appcache_service_ = new ChromeAppCacheService(quota_manager_->proxy());
|
| BrowserThread::PostTask(
|
| BrowserThread::IO, FROM_HERE,
|
| @@ -1343,11 +1348,7 @@ void ProfileImpl::CreateQuotaManagerAndClients() {
|
| }
|
|
|
| WebKitContext* ProfileImpl::GetWebKitContext() {
|
| - if (!webkit_context_.get()) {
|
| - webkit_context_ = new WebKitContext(
|
| - IsOffTheRecord(), GetPath(), GetExtensionSpecialStoragePolicy(),
|
| - clear_local_state_on_exit_);
|
| - }
|
| + CreateQuotaManagerAndClients();
|
| return webkit_context_.get();
|
| }
|
|
|
|
|