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

Unified Diff: chrome/browser/password_manager/password_store_x_unittest.cc

Issue 1125653002: [chrome/browser/password_manager] 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/password_manager/password_store_x_unittest.cc
diff --git a/chrome/browser/password_manager/password_store_x_unittest.cc b/chrome/browser/password_manager/password_store_x_unittest.cc
index 7923b0eacc810485b6f90c63d8d25c20af34ed86..f60217036b980a0017ee4db0959879ebbaa222a3 100644
--- a/chrome/browser/password_manager/password_store_x_unittest.cc
+++ b/chrome/browser/password_manager/password_store_x_unittest.cc
@@ -13,6 +13,7 @@
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
+#include "base/thread_task_runner_handle.h"
#include "base/time/time.h"
#include "chrome/browser/password_manager/password_store_x.h"
#include "chrome/test/base/testing_browser_process.h"
@@ -309,7 +310,7 @@ TEST_P(PasswordStoreXTest, Notifications) {
scoped_ptr<password_manager::LoginDatabase> login_db(
new password_manager::LoginDatabase(test_login_db_file_path()));
scoped_refptr<PasswordStoreX> store(new PasswordStoreX(
- base::MessageLoopProxy::current(), base::MessageLoopProxy::current(),
+ base::ThreadTaskRunnerHandle::Get(), base::ThreadTaskRunnerHandle::Get(),
login_db.Pass(), GetBackend()));
store->Init(syncer::SyncableService::StartSyncFlare());
@@ -410,7 +411,7 @@ TEST_P(PasswordStoreXTest, NativeMigration) {
// Initializing the PasswordStore shouldn't trigger a native migration (yet).
login_db.reset(new password_manager::LoginDatabase(login_db_file));
scoped_refptr<PasswordStoreX> store(new PasswordStoreX(
- base::MessageLoopProxy::current(), base::MessageLoopProxy::current(),
+ base::ThreadTaskRunnerHandle::Get(), base::ThreadTaskRunnerHandle::Get(),
login_db.Pass(), GetBackend()));
store->Init(syncer::SyncableService::StartSyncFlare());

Powered by Google App Engine
This is Rietveld 408576698