1 // Copyright 2014 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/test_password_store_service.h"
7 #include "components/password_manager/core/browser/test_password_store.h"
10 BrowserContextKeyedService* TestPasswordStoreService::Build(
11 content::BrowserContext* /*profile*/) {
12 scoped_refptr<PasswordStore> store(new TestPasswordStore);
13 if (!store || !store->Init())
15 return new TestPasswordStoreService(store);
18 TestPasswordStoreService::TestPasswordStoreService(
19 scoped_refptr<PasswordStore> password_store)
20 : PasswordStoreService(password_store) {}
22 TestPasswordStoreService::~TestPasswordStoreService() {}