Chromium Code Reviews| Index: content/browser/in_process_webkit/webkit_context.cc |
| diff --git a/content/browser/in_process_webkit/webkit_context.cc b/content/browser/in_process_webkit/webkit_context.cc |
| index 198326314a13be1eb703d48d569ea89953385093..7e53e4695d875b1cb4d05e185d80871897ca709f 100644 |
| --- a/content/browser/in_process_webkit/webkit_context.cc |
| +++ b/content/browser/in_process_webkit/webkit_context.cc |
| @@ -10,7 +10,9 @@ |
| WebKitContext::WebKitContext( |
| bool is_incognito, const FilePath& data_path, |
| quota::SpecialStoragePolicy* special_storage_policy, |
| - bool clear_local_state_on_exit) |
| + bool clear_local_state_on_exit, |
| + quota::QuotaManagerProxy* quota_manager_proxy, |
| + base::MessageLoopProxy* webkit_thread_loop) |
| : data_path_(is_incognito ? FilePath() : data_path), |
| is_incognito_(is_incognito), |
| clear_local_state_on_exit_(clear_local_state_on_exit), |
| @@ -19,7 +21,8 @@ WebKitContext::WebKitContext( |
| this, special_storage_policy))), |
| ALLOW_THIS_IN_INITIALIZER_LIST( |
| indexed_db_context_(new IndexedDBContext( |
| - this, special_storage_policy))) { |
| + this, special_storage_policy, quota_manager_proxy, |
| + webkit_thread_loop))) { |
| } |
| WebKitContext::~WebKitContext() { |
| @@ -41,7 +44,9 @@ WebKitContext::~WebKitContext() { |
| IndexedDBContext* indexed_db_context = indexed_db_context_.release(); |
| if (!BrowserThread::DeleteSoon( |
| BrowserThread::WEBKIT, FROM_HERE, indexed_db_context)) { |
| - delete indexed_db_context; |
|
dgrogan
2011/05/26 01:37:42
I forgot to revisit this after changing indexed_db
michaeln
2011/05/26 03:48:41
If your switching the IndexDBContext to be refcoun
|
| + // Check failed: in_dtor_. RefCountedThreadSafe object deleted without |
| + // calling Release() |
| + // delete indexed_db_context; |
| } |
| } |