• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4 
5 #include "chrome/browser/password_manager/test_password_store_service.h"
6 
7 #include "components/password_manager/core/browser/test_password_store.h"
8 
9 // static
Build(content::BrowserContext *)10 KeyedService* TestPasswordStoreService::Build(
11     content::BrowserContext* /*profile*/) {
12   scoped_refptr<password_manager::PasswordStore> store(
13       new password_manager::TestPasswordStore);
14   if (!store || !store->Init(syncer::SyncableService::StartSyncFlare()))
15     return NULL;
16   return new TestPasswordStoreService(store);
17 }
18 
TestPasswordStoreService(scoped_refptr<password_manager::PasswordStore> password_store)19 TestPasswordStoreService::TestPasswordStoreService(
20     scoped_refptr<password_manager::PasswordStore> password_store)
21     : PasswordStoreService(password_store) {}
22 
~TestPasswordStoreService()23 TestPasswordStoreService::~TestPasswordStoreService() {}
24