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

Unified Diff: chrome/browser/password_manager/password_store_mac.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_mac.cc
diff --git a/chrome/browser/password_manager/password_store_mac.cc b/chrome/browser/password_manager/password_store_mac.cc
index 22bf8607c1336192a54753bef1cc1c3fecfed893..acde852f8e2143b49f4d94ce1ad74635514ee537 100644
--- a/chrome/browser/password_manager/password_store_mac.cc
+++ b/chrome/browser/password_manager/password_store_mac.cc
@@ -826,9 +826,14 @@ OSType MacKeychainPasswordFormAdapter::CreatorCodeForSearch() {
#pragma mark -
-PasswordStoreMac::PasswordStoreMac(AppleKeychain* keychain,
- LoginDatabase* login_db)
- : keychain_(keychain), login_metadata_db_(login_db) {
+PasswordStoreMac::PasswordStoreMac(
+ scoped_refptr<base::SingleThreadTaskRunner> main_thread_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> db_thread_runner,
+ AppleKeychain* keychain,
+ LoginDatabase* login_db)
+ : PasswordStore(main_thread_runner, db_thread_runner),
+ keychain_(keychain),
+ login_metadata_db_(login_db) {
DCHECK(keychain_.get());
DCHECK(login_metadata_db_.get());
}
@@ -858,7 +863,8 @@ void PasswordStoreMac::ShutdownOnUIThread() {
// arbitrarily long time (most notably, it can block on user confirmation
// from a dialog). Run tasks on a dedicated thread to avoid blocking the DB
// thread.
-scoped_refptr<base::SequencedTaskRunner> PasswordStoreMac::GetTaskRunner() {
+scoped_refptr<base::SequencedTaskRunner>
+PasswordStoreMac::GetBackgroundTaskRunner() {
return (thread_.get()) ? thread_->message_loop_proxy() : NULL;
}
« no previous file with comments | « chrome/browser/password_manager/password_store_mac.h ('k') | chrome/browser/password_manager/password_store_mac_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698