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

Unified Diff: content/browser/indexed_db/indexed_db_unittest.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_transaction_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/indexed_db/indexed_db_unittest.cc
diff --git a/content/browser/indexed_db/indexed_db_unittest.cc b/content/browser/indexed_db/indexed_db_unittest.cc
index 25258618a33c3c0c54486d8713f6f703d003d713..21a1aa5b7488f77732edd2931b3dda5f11ca981f 100644
--- a/content/browser/indexed_db/indexed_db_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_unittest.cc
@@ -208,9 +208,10 @@ TEST_F(IndexedDBTest, ForceCloseOpenDatabasesOnDelete) {
// TODO(jsbell): Remove static_cast<> when overloads are eliminated.
idb_context->TaskRunner()->PostTask(
FROM_HERE,
- base::Bind(static_cast<void (IndexedDBContextImpl::*)(const Origin&)>(
- &IndexedDBContextImpl::DeleteForOrigin),
- idb_context, kTestOrigin));
+ base::BindOnce(
+ static_cast<void (IndexedDBContextImpl::*)(const Origin&)>(
+ &IndexedDBContextImpl::DeleteForOrigin),
+ idb_context, kTestOrigin));
FlushIndexedDBTaskRunner();
base::RunLoop().RunUntilIdle();
}
@@ -243,8 +244,7 @@ TEST_F(IndexedDBTest, DeleteFailsIfDirectoryLocked) {
void (IndexedDBContextImpl::* delete_for_origin)(const Origin&) =
&IndexedDBContextImpl::DeleteForOrigin;
idb_context->TaskRunner()->PostTask(
- FROM_HERE,
- base::Bind(delete_for_origin, idb_context, kTestOrigin));
+ FROM_HERE, base::BindOnce(delete_for_origin, idb_context, kTestOrigin));
FlushIndexedDBTaskRunner();
EXPECT_TRUE(base::DirectoryExists(test_path));
« no previous file with comments | « content/browser/indexed_db/indexed_db_transaction_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698