| Index: chrome/browser/net/quota_policy_channel_id_store_unittest.cc
|
| diff --git a/chrome/browser/net/quota_policy_channel_id_store_unittest.cc b/chrome/browser/net/quota_policy_channel_id_store_unittest.cc
|
| index 4c91d8fb7bd21eefa63e503eba0abe66b75a665a..7131995e2f7140bd19c9005894d9035f3b785f05 100644
|
| --- a/chrome/browser/net/quota_policy_channel_id_store_unittest.cc
|
| +++ b/chrome/browser/net/quota_policy_channel_id_store_unittest.cc
|
| @@ -84,11 +84,9 @@ TEST_F(QuotaPolicyChannelIDStoreTest, TestPersistence) {
|
| crypto::ECPrivateKey::Create());
|
| std::unique_ptr<crypto::ECPrivateKey> foo_key(crypto::ECPrivateKey::Create());
|
| store_->AddChannelID(net::DefaultChannelIDStore::ChannelID(
|
| - "google.com", base::Time::FromInternalValue(1),
|
| - base::WrapUnique(goog_key->Copy())));
|
| + "google.com", base::Time::FromInternalValue(1), goog_key->Copy()));
|
| store_->AddChannelID(net::DefaultChannelIDStore::ChannelID(
|
| - "foo.com", base::Time::FromInternalValue(3),
|
| - base::WrapUnique(foo_key->Copy())));
|
| + "foo.com", base::Time::FromInternalValue(3), foo_key->Copy()));
|
|
|
| std::vector<std::unique_ptr<net::DefaultChannelIDStore::ChannelID>>
|
| channel_ids;
|
| @@ -143,10 +141,10 @@ TEST_F(QuotaPolicyChannelIDStoreTest, TestPersistence) {
|
| TEST_F(QuotaPolicyChannelIDStoreTest, TestPolicy) {
|
| store_->AddChannelID(net::DefaultChannelIDStore::ChannelID(
|
| "google.com", base::Time::FromInternalValue(1),
|
| - base::WrapUnique(crypto::ECPrivateKey::Create())));
|
| + crypto::ECPrivateKey::Create()));
|
| store_->AddChannelID(net::DefaultChannelIDStore::ChannelID(
|
| "nonpersistent.com", base::Time::FromInternalValue(3),
|
| - base::WrapUnique(crypto::ECPrivateKey::Create())));
|
| + crypto::ECPrivateKey::Create()));
|
|
|
| std::vector<std::unique_ptr<net::DefaultChannelIDStore::ChannelID>>
|
| channel_ids;
|
| @@ -176,10 +174,10 @@ TEST_F(QuotaPolicyChannelIDStoreTest, TestPolicy) {
|
| // being committed to disk.
|
| store_->AddChannelID(net::DefaultChannelIDStore::ChannelID(
|
| "nonpersistent.com", base::Time::FromInternalValue(5),
|
| - base::WrapUnique(crypto::ECPrivateKey::Create())));
|
| + crypto::ECPrivateKey::Create()));
|
| store_->AddChannelID(net::DefaultChannelIDStore::ChannelID(
|
| "persistent.com", base::Time::FromInternalValue(7),
|
| - base::WrapUnique(crypto::ECPrivateKey::Create())));
|
| + crypto::ECPrivateKey::Create()));
|
|
|
| // Now close the store, and the nonpersistent.com channel IDs should be
|
| // deleted according to policy.
|
|
|