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

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

Issue 2941353002: Indexed DB: Use BindOnce / OnceCallback / OnceClosure where applicable (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | content/browser/indexed_db/database_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/indexed_db/cursor_impl.cc
diff --git a/content/browser/indexed_db/cursor_impl.cc b/content/browser/indexed_db/cursor_impl.cc
index 65158584c2294579e1dcc53a0332a6f84703751b..fd8a17acdf3f4dbaf43240d67d0951070ee39ac6 100644
--- a/content/browser/indexed_db/cursor_impl.cc
+++ b/content/browser/indexed_db/cursor_impl.cc
@@ -50,9 +50,10 @@ void CursorImpl::Advance(
scoped_refptr<IndexedDBCallbacks> callbacks(
new IndexedDBCallbacks(dispatcher_host_->AsWeakPtr(), origin_,
std::move(callbacks_info), idb_runner_));
- idb_runner_->PostTask(FROM_HERE, base::Bind(&IDBSequenceHelper::Advance,
- base::Unretained(helper_), count,
- base::Passed(&callbacks)));
+ idb_runner_->PostTask(
+ FROM_HERE,
+ base::BindOnce(&IDBSequenceHelper::Advance, base::Unretained(helper_),
+ count, base::Passed(&callbacks)));
}
void CursorImpl::Continue(
@@ -64,8 +65,8 @@ void CursorImpl::Continue(
std::move(callbacks_info), idb_runner_));
idb_runner_->PostTask(
FROM_HERE,
- base::Bind(&IDBSequenceHelper::Continue, base::Unretained(helper_), key,
- primary_key, base::Passed(&callbacks)));
+ base::BindOnce(&IDBSequenceHelper::Continue, base::Unretained(helper_),
+ key, primary_key, base::Passed(&callbacks)));
}
void CursorImpl::Prefetch(
@@ -74,9 +75,10 @@ void CursorImpl::Prefetch(
scoped_refptr<IndexedDBCallbacks> callbacks(
new IndexedDBCallbacks(dispatcher_host_->AsWeakPtr(), origin_,
std::move(callbacks_info), idb_runner_));
- idb_runner_->PostTask(FROM_HERE, base::Bind(&IDBSequenceHelper::Prefetch,
- base::Unretained(helper_), count,
- base::Passed(&callbacks)));
+ idb_runner_->PostTask(
+ FROM_HERE,
+ base::BindOnce(&IDBSequenceHelper::Prefetch, base::Unretained(helper_),
+ count, base::Passed(&callbacks)));
}
void CursorImpl::PrefetchReset(
@@ -87,9 +89,9 @@ void CursorImpl::PrefetchReset(
dispatcher_host_->DropBlobData(uuid);
idb_runner_->PostTask(
- FROM_HERE,
- base::Bind(&IDBSequenceHelper::PrefetchReset, base::Unretained(helper_),
- used_prefetches, unused_prefetches));
+ FROM_HERE, base::BindOnce(&IDBSequenceHelper::PrefetchReset,
+ base::Unretained(helper_), used_prefetches,
+ unused_prefetches));
}
CursorImpl::IDBSequenceHelper::IDBSequenceHelper(
« no previous file with comments | « no previous file | content/browser/indexed_db/database_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698