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

Unified Diff: chrome/browser/password_manager/simple_password_store_mac.h

Issue 1226303003: Start the migration of passwords from the Keychain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix the test Created 5 years, 5 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/simple_password_store_mac.h
diff --git a/chrome/browser/password_manager/simple_password_store_mac.h b/chrome/browser/password_manager/simple_password_store_mac.h
index 3e046b9ea4369df836d266eab9814fbb48071cec..f61e7232de20cfa89e6df057c272474372159357 100644
--- a/chrome/browser/password_manager/simple_password_store_mac.h
+++ b/chrome/browser/password_manager/simple_password_store_mac.h
@@ -11,17 +11,19 @@
// owner is responsible for the thread lifetime.
class SimplePasswordStoreMac : public password_manager::PasswordStoreDefault {
public:
+ // Passes the arguments to PasswordStoreDefault. |background_task_runner| and
+ // |login_db| can be overwritten later in InitWithTaskRunner().
SimplePasswordStoreMac(
scoped_refptr<base::SingleThreadTaskRunner> main_thread_runner,
scoped_refptr<base::SingleThreadTaskRunner> background_thread_runner,
scoped_ptr<password_manager::LoginDatabase> login_db);
- // Just hides the parent method. All the initialization is to be done by
- // PasswordStoreProxyMac that is an owner of the class.
- bool Init(const syncer::SyncableService::StartSyncFlare& flare) override;
-
- // Clean |background_thread_runner_|.
- void Shutdown() override;
+ // Sets the background thread and LoginDatabase. |login_db| should be already
+ // inited. The method isn't necessary to call if the constructor already got
+ // the correct parameters.
+ void InitWithTaskRunner(
+ scoped_refptr<base::SingleThreadTaskRunner> background_task_runner,
+ scoped_ptr<password_manager::LoginDatabase> login_db);
using PasswordStoreDefault::GetBackgroundTaskRunner;
@@ -29,6 +31,8 @@ class SimplePasswordStoreMac : public password_manager::PasswordStoreDefault {
~SimplePasswordStoreMac() override;
private:
+ bool Init(const syncer::SyncableService::StartSyncFlare& flare) override;
+
DISALLOW_COPY_AND_ASSIGN(SimplePasswordStoreMac);
};

Powered by Google App Engine
This is Rietveld 408576698