| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #include "chrome/browser/password_manager/simple_password_store_mac.h" | |
| 6 | |
| 7 #include <utility> | |
| 8 | |
| 9 SimplePasswordStoreMac::SimplePasswordStoreMac( | |
| 10 scoped_refptr<base::SingleThreadTaskRunner> main_thread_runner, | |
| 11 scoped_refptr<base::SingleThreadTaskRunner> background_thread_runner, | |
| 12 std::unique_ptr<password_manager::LoginDatabase> login_db) | |
| 13 : PasswordStoreDefault(main_thread_runner, | |
| 14 background_thread_runner, | |
| 15 std::move(login_db)) { | |
| 16 if (this->login_db()) | |
| 17 this->login_db()->set_clear_password_values(false); | |
| 18 } | |
| 19 | |
| 20 SimplePasswordStoreMac::~SimplePasswordStoreMac() { | |
| 21 } | |
| 22 | |
| 23 void SimplePasswordStoreMac::InitWithTaskRunner( | |
| 24 scoped_refptr<base::SingleThreadTaskRunner> background_task_runner, | |
| 25 std::unique_ptr<password_manager::LoginDatabase> login_db) { | |
| 26 db_thread_runner_ = background_task_runner; | |
| 27 DCHECK(GetBackgroundTaskRunner()->BelongsToCurrentThread()); | |
| 28 set_login_db(std::move(login_db)); | |
| 29 if (this->login_db()) | |
| 30 this->login_db()->set_clear_password_values(false); | |
| 31 } | |
| 32 | |
| 33 bool SimplePasswordStoreMac::Init( | |
| 34 const syncer::SyncableService::StartSyncFlare& flare, | |
| 35 PrefService* prefs) { | |
| 36 NOTREACHED(); | |
| 37 return false; | |
| 38 } | |
| OLD | NEW |