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 cbf00f61561ddb1f1d747ce8ffa2460f05ea59b6..83096f1bc4732ecdf7c9bbf35263defe38ffc80c 100644 |
--- a/chrome/browser/net/quota_policy_channel_id_store_unittest.cc |
+++ b/chrome/browser/net/quota_policy_channel_id_store_unittest.cc |
@@ -56,9 +56,8 @@ class QuotaPolicyChannelIDStoreTest : public testing::Test { |
void SetUp() override { |
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); |
store_ = new QuotaPolicyChannelIDStore( |
- temp_dir_.path().Append(kTestChannelIDFilename), |
- base::ThreadTaskRunnerHandle::Get(), |
- NULL); |
+ temp_dir_.GetPath().Append(kTestChannelIDFilename), |
+ base::ThreadTaskRunnerHandle::Get(), NULL); |
std::vector<std::unique_ptr<net::DefaultChannelIDStore::ChannelID>> |
channel_ids; |
Load(&channel_ids); |
@@ -96,9 +95,8 @@ TEST_F(QuotaPolicyChannelIDStoreTest, TestPersistence) { |
// Make sure we wait until the destructor has run. |
base::RunLoop().RunUntilIdle(); |
store_ = new QuotaPolicyChannelIDStore( |
- temp_dir_.path().Append(kTestChannelIDFilename), |
- base::ThreadTaskRunnerHandle::Get(), |
- NULL); |
+ temp_dir_.GetPath().Append(kTestChannelIDFilename), |
+ base::ThreadTaskRunnerHandle::Get(), NULL); |
// Reload and test for persistence |
Load(&channel_ids); |
@@ -127,9 +125,8 @@ TEST_F(QuotaPolicyChannelIDStoreTest, TestPersistence) { |
base::RunLoop().RunUntilIdle(); |
channel_ids.clear(); |
store_ = new QuotaPolicyChannelIDStore( |
- temp_dir_.path().Append(kTestChannelIDFilename), |
- base::ThreadTaskRunnerHandle::Get(), |
- NULL); |
+ temp_dir_.GetPath().Append(kTestChannelIDFilename), |
+ base::ThreadTaskRunnerHandle::Get(), NULL); |
// Reload and check if the channel ID has been removed. |
Load(&channel_ids); |
@@ -160,9 +157,8 @@ TEST_F(QuotaPolicyChannelIDStoreTest, TestPolicy) { |
net::cookie_util::CookieOriginToURL("nonpersistent.com", true)); |
// Reload store, it should still have both channel IDs. |
store_ = new QuotaPolicyChannelIDStore( |
- temp_dir_.path().Append(kTestChannelIDFilename), |
- base::ThreadTaskRunnerHandle::Get(), |
- storage_policy); |
+ temp_dir_.GetPath().Append(kTestChannelIDFilename), |
+ base::ThreadTaskRunnerHandle::Get(), storage_policy); |
Load(&channel_ids); |
ASSERT_EQ(2U, channel_ids.size()); |
@@ -185,9 +181,8 @@ TEST_F(QuotaPolicyChannelIDStoreTest, TestPolicy) { |
base::RunLoop().RunUntilIdle(); |
channel_ids.clear(); |
store_ = new QuotaPolicyChannelIDStore( |
- temp_dir_.path().Append(kTestChannelIDFilename), |
- base::ThreadTaskRunnerHandle::Get(), |
- NULL); |
+ temp_dir_.GetPath().Append(kTestChannelIDFilename), |
+ base::ThreadTaskRunnerHandle::Get(), NULL); |
// Reload and check that the nonpersistent.com channel IDs have been removed. |
Load(&channel_ids); |