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

Unified Diff: content/browser/indexed_db/indexed_db_context_impl.cc

Issue 1504033007: Move Indexed DB from dedicated thread to task scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@timer
Patch Set: Rebased Created 3 years, 6 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/indexed_db/indexed_db_context_impl.cc
diff --git a/content/browser/indexed_db/indexed_db_context_impl.cc b/content/browser/indexed_db/indexed_db_context_impl.cc
index 660a48abd449aaf75f913ddba65fd50ef3517cfe..779b75dad4d30656010453d92287379ea7d0f286 100644
--- a/content/browser/indexed_db/indexed_db_context_impl.cc
+++ b/content/browser/indexed_db/indexed_db_context_impl.cc
@@ -63,7 +63,7 @@ namespace {
void GetAllOriginsAndPaths(const base::FilePath& indexeddb_path,
std::vector<Origin>* origins,
std::vector<base::FilePath>* file_paths) {
- // TODO(jsbell): DCHECK that this is running on an IndexedDB thread,
+ // TODO(jsbell): DCHECK that this is running on an IndexedDB sequence,
// if a global handle to it is ever available.
if (indexeddb_path.empty())
return;
@@ -86,7 +86,7 @@ void GetAllOriginsAndPaths(const base::FilePath& indexeddb_path,
void ClearSessionOnlyOrigins(
const base::FilePath& indexeddb_path,
scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy) {
- // TODO(jsbell): DCHECK that this is running on an IndexedDB thread,
+ // TODO(jsbell): DCHECK that this is running on an IndexedDB sequence,
// if a global handle to it is ever available.
std::vector<Origin> origins;
std::vector<base::FilePath> file_paths;
@@ -110,7 +110,7 @@ IndexedDBContextImpl::IndexedDBContextImpl(
const base::FilePath& data_path,
storage::SpecialStoragePolicy* special_storage_policy,
storage::QuotaManagerProxy* quota_manager_proxy,
- base::SequencedTaskRunner* task_runner)
+ scoped_refptr<base::SequencedTaskRunner> task_runner)
: force_keep_session_state_(false),
special_storage_policy_(special_storage_policy),
quota_manager_proxy_(quota_manager_proxy),

Powered by Google App Engine
This is Rietveld 408576698