Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1025)

Unified Diff: chrome/browser/net/quota_policy_channel_id_store_unittest.cc

Issue 1121213002: [chrome/browser/net] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 1f1718b0fc14c8b1f116fc063bd21c074c1474bf..8accc07aa1935e65a50078289e982b5effb11f9e 100644
--- a/chrome/browser/net/quota_policy_channel_id_store_unittest.cc
+++ b/chrome/browser/net/quota_policy_channel_id_store_unittest.cc
@@ -114,7 +114,7 @@ TEST_F(QuotaPolicyChannelIDStoreTest, TestPersistence) {
base::RunLoop().RunUntilIdle();
store_ = new QuotaPolicyChannelIDStore(
temp_dir_.path().Append(kTestChannelIDFilename),
- base::MessageLoopProxy::current(),
+ base::ThreadTaskRunnerHandle::Get(),
Ryan Sleevi 2015/05/04 18:11:27 IWYU: If you're going to change this, you need to
Pranay 2015/05/05 04:18:38 Done.
NULL);
// Reload and test for persistence
@@ -149,7 +149,7 @@ TEST_F(QuotaPolicyChannelIDStoreTest, TestPersistence) {
channel_ids.clear();
store_ = new QuotaPolicyChannelIDStore(
temp_dir_.path().Append(kTestChannelIDFilename),
- base::MessageLoopProxy::current(),
+ base::ThreadTaskRunnerHandle::Get(),
NULL);
// Reload and check if the channel ID has been removed.
@@ -181,7 +181,7 @@ TEST_F(QuotaPolicyChannelIDStoreTest, TestPolicy) {
// Reload store, it should still have both channel IDs.
store_ = new QuotaPolicyChannelIDStore(
temp_dir_.path().Append(kTestChannelIDFilename),
- base::MessageLoopProxy::current(),
+ base::ThreadTaskRunnerHandle::Get(),
storage_policy);
Load(&channel_ids);
ASSERT_EQ(2U, channel_ids.size());
@@ -206,7 +206,7 @@ TEST_F(QuotaPolicyChannelIDStoreTest, TestPolicy) {
channel_ids.clear();
store_ = new QuotaPolicyChannelIDStore(
temp_dir_.path().Append(kTestChannelIDFilename),
- base::MessageLoopProxy::current(),
+ base::ThreadTaskRunnerHandle::Get(),
NULL);
// Reload and check that the nonpersistent.com channel IDs have been removed.

Powered by Google App Engine
This is Rietveld 408576698