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

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

Issue 152683002: Passwords: Remove references to BrowserThread from PasswordStore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 10 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_default_unittest.cc
diff --git a/chrome/browser/password_manager/password_store_default_unittest.cc b/chrome/browser/password_manager/password_store_default_unittest.cc
index b419a4da94c8b947954f8752384d2860770fb308..9d1cb992c635a5b21fe5bc3772df4ed4f826a6e4 100644
--- a/chrome/browser/password_manager/password_store_default_unittest.cc
+++ b/chrome/browser/password_manager/password_store_default_unittest.cc
@@ -135,7 +135,11 @@ ACTION(QuitUIMessageLoop) {
TEST_F(PasswordStoreDefaultTest, NonASCIIData) {
scoped_refptr<PasswordStoreDefault> store(
- new PasswordStoreDefault(login_db_.release(), profile_.get()));
+ new PasswordStoreDefault(
+ base::MessageLoopProxy::current(),
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB),
+ login_db_.release(),
+ profile_.get()));
store->Init();
// Some non-ASCII password form data.
@@ -187,8 +191,12 @@ TEST_F(PasswordStoreDefaultTest, NonASCIIData) {
}
TEST_F(PasswordStoreDefaultTest, Notifications) {
- scoped_refptr<PasswordStore> store(
- new PasswordStoreDefault(login_db_.release(), profile_.get()));
+ scoped_refptr<PasswordStoreDefault> store(
+ new PasswordStoreDefault(
+ base::MessageLoopProxy::current(),
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB),
+ login_db_.release(),
+ profile_.get()));
store->Init();
PasswordFormData form_data =
« no previous file with comments | « chrome/browser/password_manager/password_store_default.cc ('k') | chrome/browser/password_manager/password_store_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698