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

Unified Diff: content/browser/indexed_db/indexed_db_context_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 | « content/browser/indexed_db/indexed_db_callbacks.cc ('k') | content/browser/indexed_db/indexed_db_cursor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5357e60c6842a6815987eb9e0dcb30dff1aca9b0..c64f52eb195e02490dfc0ef400c7f2d057822ba7 100644
--- a/content/browser/indexed_db/indexed_db_context_impl.cc
+++ b/content/browser/indexed_db/indexed_db_context_impl.cc
@@ -468,8 +468,8 @@ void IndexedDBContextImpl::DatabaseDeleted(const Origin& origin) {
IndexedDBContextImpl::~IndexedDBContextImpl() {
if (factory_.get()) {
TaskRunner()->PostTask(FROM_HERE,
- base::Bind(&IndexedDBFactory::ContextDestroyed,
- base::Passed(&factory_)));
+ base::BindOnce(&IndexedDBFactory::ContextDestroyed,
+ base::Passed(&factory_)));
}
if (data_path_.empty())
@@ -486,10 +486,9 @@ IndexedDBContextImpl::~IndexedDBContextImpl() {
if (!has_session_only_databases)
return;
- TaskRunner()->PostTask(
- FROM_HERE,
- base::Bind(
- &ClearSessionOnlyOrigins, data_path_, special_storage_policy_));
+ TaskRunner()->PostTask(FROM_HERE,
+ base::BindOnce(&ClearSessionOnlyOrigins, data_path_,
+ special_storage_policy_));
}
// static
« no previous file with comments | « content/browser/indexed_db/indexed_db_callbacks.cc ('k') | content/browser/indexed_db/indexed_db_cursor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698