1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/password_manager/simple_password_store_mac.h"
7 SimplePasswordStoreMac::SimplePasswordStoreMac(
8 scoped_refptr
<base::SingleThreadTaskRunner
> main_thread_runner
,
9 scoped_refptr
<base::SingleThreadTaskRunner
> background_thread_runner
,
10 scoped_ptr
<password_manager::LoginDatabase
> login_db
)
11 : PasswordStoreDefault(main_thread_runner
, background_thread_runner
,
14 this->login_db()->set_clear_password_values(false);
17 SimplePasswordStoreMac::~SimplePasswordStoreMac() {
20 void SimplePasswordStoreMac::InitWithTaskRunner(
21 scoped_refptr
<base::SingleThreadTaskRunner
> background_task_runner
,
22 scoped_ptr
<password_manager::LoginDatabase
> login_db
) {
23 db_thread_runner_
= background_task_runner
;
24 DCHECK(GetBackgroundTaskRunner()->BelongsToCurrentThread());
25 set_login_db(login_db
.Pass());
27 this->login_db()->set_clear_password_values(false);
30 bool SimplePasswordStoreMac::Init(
31 const syncer::SyncableService::StartSyncFlare
& flare
) {