Index: content/browser/storage_partition_impl.cc |
diff --git a/content/browser/storage_partition_impl.cc b/content/browser/storage_partition_impl.cc |
index 439d9eabfb7ffb40e03c4b656e93a7505e4e1e29..137b6fa72287a270e9df413ac4d290f34f99d2b9 100644 |
--- a/content/browser/storage_partition_impl.cc |
+++ b/content/browser/storage_partition_impl.cc |
@@ -18,6 +18,7 @@ |
#include "content/browser/fileapi/browser_file_system_helper.h" |
#include "content/browser/gpu/shader_disk_cache.h" |
#include "content/browser/host_zoom_map_impl.h" |
+#include "content/browser/indexed_db/database_factory_impl.h" |
#include "content/browser/notifications/platform_notification_context_impl.h" |
#include "content/common/dom_storage/dom_storage_types.h" |
#include "content/public/browser/browser_context.h" |
@@ -465,7 +466,7 @@ std::unique_ptr<StoragePartitionImpl> StoragePartitionImpl::Create( |
// BrowserMainLoop may not be initialized in unit tests. Tests will |
// need to inject their own task runner into the IndexedDBContext. |
- base::SequencedTaskRunner* idb_task_runner = |
+ base::SingleThreadTaskRunner* idb_task_runner = |
BrowserThread::CurrentlyOn(BrowserThread::UI) && |
BrowserMainLoop::GetInstance() |
? BrowserMainLoop::GetInstance() |
@@ -476,10 +477,8 @@ std::unique_ptr<StoragePartitionImpl> StoragePartitionImpl::Create( |
base::FilePath path = in_memory ? base::FilePath() : partition_path; |
scoped_refptr<IndexedDBContextImpl> indexed_db_context = |
- new IndexedDBContextImpl(path, |
- context->GetSpecialStoragePolicy(), |
- quota_manager->proxy(), |
- idb_task_runner); |
+ new IndexedDBContextImpl(path, context->GetSpecialStoragePolicy(), |
+ quota_manager->proxy(), idb_task_runner); |
scoped_refptr<CacheStorageContextImpl> cache_storage_context = |
new CacheStorageContextImpl(context); |