Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / browser / signin / fake_signin_manager_builder.h
blob0896bedf0703947b67b7e91557d9766d33873450
1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_SIGNIN_FAKE_SIGNIN_MANAGER_BUILDER_H_
6 #define CHROME_BROWSER_SIGNIN_FAKE_SIGNIN_MANAGER_BUILDER_H_
8 #include <string>
10 #include "base/memory/scoped_ptr.h"
12 #include "components/signin/core/browser/fake_signin_manager.h"
14 namespace content {
15 class BrowserContext;
18 class KeyedService;
19 class Profile;
21 // Helper function to be used with KeyedService::SetTestingFactory().
22 // In order to match the API of SigninManagerFactory::GetForProfile(), returns a
23 // FakeSigninManagerBase* on ChromeOS, and a FakeSigninManager* on all other
24 // platforms. The returned instance is initialized.
25 scoped_ptr<KeyedService> BuildFakeSigninManagerBase(
26 content::BrowserContext* context);
28 class FakeSigninManagerForTesting
29 #if defined(OS_CHROMEOS)
30 : public FakeSigninManagerBase {
31 #else
32 : public FakeSigninManager {
33 #endif
35 public:
36 FakeSigninManagerForTesting(Profile* profile);
39 #endif // CHROME_BROWSER_SIGNIN_FAKE_SIGNIN_MANAGER_BUILDER_H_