Index: content/browser/storage_partition_impl.cc |
diff --git a/content/browser/storage_partition_impl.cc b/content/browser/storage_partition_impl.cc |
index e32fc72ff6d3e7c9d6f63d0698b8793c6dad9d51..189903e8109910eca68cde2d1132bbe234c34227 100644 |
--- a/content/browser/storage_partition_impl.cc |
+++ b/content/browser/storage_partition_impl.cc |
@@ -5,8 +5,10 @@ |
#include "content/browser/storage_partition_impl.h" |
#include "base/strings/utf_string_conversions.h" |
+#include "content/browser/browser_main_loop.h" |
#include "content/browser/fileapi/browser_file_system_helper.h" |
#include "content/browser/gpu/shader_disk_cache.h" |
+#include "content/browser/indexed_db/indexed_db_thread.h" |
#include "content/public/browser/browser_context.h" |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/dom_storage_context.h" |
@@ -224,12 +226,13 @@ StoragePartitionImpl* StoragePartitionImpl::Create( |
scoped_refptr<DOMStorageContextImpl> dom_storage_context = |
new DOMStorageContextImpl(path, context->GetSpecialStoragePolicy()); |
+ IndexedDBThread* idb_thread = BrowserMainLoop::GetIndexedDBThread(); |
scoped_refptr<IndexedDBContextImpl> indexed_db_context = |
- new IndexedDBContextImpl(path, |
- context->GetSpecialStoragePolicy(), |
- quota_manager->proxy(), |
- BrowserThread::GetMessageLoopProxyForThread( |
- BrowserThread::WEBKIT_DEPRECATED).get()); |
+ new IndexedDBContextImpl( |
+ path, |
+ context->GetSpecialStoragePolicy(), |
+ quota_manager->proxy(), |
+ idb_thread ? idb_thread->thread()->message_loop() : NULL); |
scoped_refptr<ChromeAppCacheService> appcache_service = |
new ChromeAppCacheService(quota_manager->proxy()); |