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

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: Fixed Review Comments Created 5 years, 7 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..2570c9725c3af440e7883d69b2ee81fe742cbe1b 100644
--- a/chrome/browser/net/quota_policy_channel_id_store_unittest.cc
+++ b/chrome/browser/net/quota_policy_channel_id_store_unittest.cc
@@ -9,6 +9,7 @@
#include "base/memory/scoped_vector.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
+#include "base/single_thread_task_runner.h"
#include "base/stl_util.h"
#include "base/thread_task_runner_handle.h"
#include "base/time/time.h"
@@ -114,7 +115,7 @@ TEST_F(QuotaPolicyChannelIDStoreTest, TestPersistence) {
base::RunLoop().RunUntilIdle();
store_ = new QuotaPolicyChannelIDStore(
temp_dir_.path().Append(kTestChannelIDFilename),
- base::MessageLoopProxy::current(),
+ base::ThreadTaskRunnerHandle::Get(),
NULL);
// Reload and test for persistence
@@ -149,7 +150,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 +182,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 +207,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.
« no previous file with comments | « chrome/browser/net/nss_context.cc ('k') | chrome/browser/net/utility_process_mojo_proxy_resolver_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698