Index: chrome/browser/browsing_data/mock_browsing_data_channel_id_helper.cc |
diff --git a/chrome/browser/browsing_data/mock_browsing_data_channel_id_helper.cc b/chrome/browser/browsing_data/mock_browsing_data_channel_id_helper.cc |
index dd20a8c8f28771828e0e0da93c99aa5409f1ea21..b219008ab61ce2292642a363d8d2a03835e2616a 100644 |
--- a/chrome/browser/browsing_data/mock_browsing_data_channel_id_helper.cc |
+++ b/chrome/browser/browsing_data/mock_browsing_data_channel_id_helper.cc |
@@ -30,9 +30,9 @@ void MockBrowsingDataChannelIDHelper::DeleteChannelID( |
void MockBrowsingDataChannelIDHelper::AddChannelIDSample( |
const std::string& server_id) { |
ASSERT_TRUE(channel_ids_.find(server_id) == channel_ids_.end()); |
+ scoped_ptr<crypto::ECPrivateKey> key(crypto::ECPrivateKey::Create()); |
channel_id_list_.push_back( |
- net::ChannelIDStore::ChannelID( |
- server_id, base::Time(), base::Time(), "key", "cert")); |
+ net::ChannelIDStore::ChannelID(server_id, base::Time(), key.Pass())); |
channel_ids_[server_id] = true; |
} |