Commit 6c10896f authored by Anna Malova's avatar Anna Malova Committed by Commit Bot

Convert NSSCertDatabaseChromeOSTest to use OnceCallback

Bug: 1007815
Change-Id: If81fbff53dd3d6dd1256e83b0c537d59a38aca8a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2083321Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
Commit-Queue: Anna Malova <amalova@chromium.org>
Cr-Commit-Position: refs/heads/master@{#746033}
parent 5447e2e6
...@@ -71,14 +71,14 @@ class NSSCertDatabaseChromeOSTest : public TestWithTaskEnvironment, ...@@ -71,14 +71,14 @@ class NSSCertDatabaseChromeOSTest : public TestWithTaskEnvironment,
crypto::GetPublicSlotForChromeOSUser(user_1_.username_hash()), crypto::GetPublicSlotForChromeOSUser(user_1_.username_hash()),
crypto::GetPrivateSlotForChromeOSUser( crypto::GetPrivateSlotForChromeOSUser(
user_1_.username_hash(), user_1_.username_hash(),
base::Callback<void(crypto::ScopedPK11Slot)>()))); base::OnceCallback<void(crypto::ScopedPK11Slot)>())));
db_1_->SetSystemSlot( db_1_->SetSystemSlot(
crypto::ScopedPK11Slot(PK11_ReferenceSlot(system_db_.slot()))); crypto::ScopedPK11Slot(PK11_ReferenceSlot(system_db_.slot())));
db_2_.reset(new NSSCertDatabaseChromeOS( db_2_.reset(new NSSCertDatabaseChromeOS(
crypto::GetPublicSlotForChromeOSUser(user_2_.username_hash()), crypto::GetPublicSlotForChromeOSUser(user_2_.username_hash()),
crypto::GetPrivateSlotForChromeOSUser( crypto::GetPrivateSlotForChromeOSUser(
user_2_.username_hash(), user_2_.username_hash(),
base::Callback<void(crypto::ScopedPK11Slot)>()))); base::OnceCallback<void(crypto::ScopedPK11Slot)>())));
// Add observer to CertDatabase for checking that notifications from // Add observer to CertDatabase for checking that notifications from
// NSSCertDatabaseChromeOS are proxied to the CertDatabase. // NSSCertDatabaseChromeOS are proxied to the CertDatabase.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment