Index: components/safe_browsing_db/v4_database_unittest.cc |
diff --git a/components/safe_browsing_db/v4_database_unittest.cc b/components/safe_browsing_db/v4_database_unittest.cc |
index 6b83138a19cafd86536bf5ef227cd9a9b16dece8..b8e0786aedca30413f7d55130aa2ed9137313179 100644 |
--- a/components/safe_browsing_db/v4_database_unittest.cc |
+++ b/components/safe_browsing_db/v4_database_unittest.cc |
@@ -91,8 +91,8 @@ |
} |
void RegisterFactory(bool hash_prefix_matches = true) { |
- V4Database::RegisterStoreFactoryForTest( |
- base::MakeUnique<FakeV4StoreFactory>(hash_prefix_matches)); |
+ factory_.reset(new FakeV4StoreFactory(hash_prefix_matches)); |
+ V4Database::RegisterStoreFactoryForTest(factory_.get()); |
} |
void SetupInfoMapAndExpectedState() { |
@@ -206,6 +206,7 @@ |
ListInfos list_infos_; |
std::vector<ListIdentifier> expected_identifiers_; |
std::vector<base::FilePath> expected_store_paths_; |
+ std::unique_ptr<FakeV4StoreFactory> factory_; |
DatabaseUpdatedCallback callback_db_updated_; |
NewDatabaseReadyCallback callback_db_ready_; |
StoreStateMap expected_store_state_map_; |