summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/signin/test_signin_client_builder.cc
blob: 9795a5e7e8507bbd576f8d1f966041764fb7d182 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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/signin/test_signin_client_builder.h"

#include "chrome/browser/profiles/profile.h"
#include "components/signin/public/base/test_signin_client.h"

namespace signin {

std::unique_ptr<KeyedService> BuildTestSigninClient(
    content::BrowserContext* context) {
  return std::make_unique<TestSigninClient>(
      static_cast<Profile*>(context)->GetPrefs());
}

}  // namespace signin