summaryrefslogtreecommitdiff
path: root/chrome/browser/signin/test_signin_client_builder.cc
blob: d846fa01795ae9d8779f677d0a2b9655007eafe3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// 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/core/browser/test_signin_client.h"

class KeyedService;

namespace content {
class BrowserContext;
}

namespace signin {

KeyedService* BuildTestSigninClient(
    content::BrowserContext* context) {
  TestSigninClient* test_signin_client =
      new TestSigninClient(static_cast<Profile*>(context)->GetPrefs());
  return test_signin_client;
}

}  // namespace signin