blob: 3916b6e1061ed99388d9a094a887221c2d27b517 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/password_manager/test_password_store_service.h"
#include "components/password_manager/core/browser/test_password_store.h"
// static
KeyedService* TestPasswordStoreService::Build(
content::BrowserContext* /*profile*/) {
scoped_refptr<password_manager::PasswordStore> store(
new password_manager::TestPasswordStore);
if (!store || !store->Init(syncer::SyncableService::StartSyncFlare(), ""))
return NULL;
return new TestPasswordStoreService(store);
}
TestPasswordStoreService::TestPasswordStoreService(
scoped_refptr<password_manager::PasswordStore> password_store)
: PasswordStoreService(password_store) {}
TestPasswordStoreService::~TestPasswordStoreService() {}