Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(783)

Unified Diff: content/browser/storage_partition_impl.cc

Issue 1963293002: Replacing Indexed DB Chromium IPC with Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring after Passing URLRequestContextGetter. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « content/browser/service_worker/service_worker_context_wrapper.cc ('k') | content/child/indexed_db/indexed_db_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698