Chromium Code Reviews| Index: chrome/browser/profiles/profile_impl.cc |
| diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc |
| index 490f72f5a95b7be238549e7aa578511c0fc89dbe..17b662254bc650a6e397e9fad0bb5235fcd6e49d 100644 |
| --- a/chrome/browser/profiles/profile_impl.cc |
| +++ b/chrome/browser/profiles/profile_impl.cc |
| @@ -1291,6 +1291,7 @@ void ProfileImpl::CreateQuotaManagerAndClients() { |
| if (quota_manager_.get()) { |
| DCHECK(file_system_context_.get()); |
| DCHECK(db_tracker_.get()); |
| + DCHECK(webkit_context_.get()); |
| return; |
| } |
| @@ -1315,6 +1316,10 @@ void ProfileImpl::CreateQuotaManagerAndClients() { |
| quota_manager_->proxy(), |
| BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); |
| appcache_service_ = new ChromeAppCacheService(quota_manager_->proxy()); |
| + webkit_context_ = new WebKitContext( |
| + IsOffTheRecord(), GetPath(), GetExtensionSpecialStoragePolicy(), |
| + clear_local_state_on_exit_, quota_manager_->proxy(), |
| + BrowserThread::GetMessageLoopProxyForThread(BrowserThread::WEBKIT)); |
|
michaeln
2011/05/26 03:48:41
same comment here
dgrogan
2011/05/26 05:41:19
Done.
|
| BrowserThread::PostTask( |
| BrowserThread::IO, FROM_HERE, |
| NewRunnableMethod( |
| @@ -1328,11 +1333,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(); |
| } |