Only grant permissions to new extensions from sync if they have the expected version
[chromium-blink-merge.git] / chrome / browser / password_manager / simple_password_store_mac.cc
bloba16673d984a13d5c88867804d5feebbf438a443f
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,
12 login_db.Pass()) {
13 if (this->login_db())
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());
26 if (this->login_db())
27 this->login_db()->set_clear_password_values(false);
30 bool SimplePasswordStoreMac::Init(
31 const syncer::SyncableService::StartSyncFlare& flare) {
32 NOTREACHED();
33 return false;