| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_SERVICES_GCM_FAKE_SIGNIN_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_SERVICES_GCM_FAKE_SIGNIN_MANAGER_H_ |
| 6 #define CHROME_BROWSER_SERVICES_GCM_FAKE_SIGNIN_MANAGER_H_ | 6 #define CHROME_BROWSER_SERVICES_GCM_FAKE_SIGNIN_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 namespace gcm { | 27 namespace gcm { |
| 28 | 28 |
| 29 #if defined(OS_CHROMEOS) | 29 #if defined(OS_CHROMEOS) |
| 30 class FakeSigninManager : public SigninManagerBase { | 30 class FakeSigninManager : public SigninManagerBase { |
| 31 #else | 31 #else |
| 32 class FakeSigninManager : public SigninManager { | 32 class FakeSigninManager : public SigninManager { |
| 33 #endif | 33 #endif |
| 34 public: | 34 public: |
| 35 explicit FakeSigninManager(Profile* profile); | 35 explicit FakeSigninManager(Profile* profile); |
| 36 virtual ~FakeSigninManager(); | 36 ~FakeSigninManager() override; |
| 37 | 37 |
| 38 void SignIn(const std::string& username); | 38 void SignIn(const std::string& username); |
| 39 #if defined(OS_CHROMEOS) | 39 #if defined(OS_CHROMEOS) |
| 40 void SignOut(signin_metrics::ProfileSignout signout_source_metric); | 40 void SignOut(signin_metrics::ProfileSignout signout_source_metric); |
| 41 #else | 41 #else |
| 42 virtual void SignOut(signin_metrics::ProfileSignout signout_source_metric) | 42 void SignOut(signin_metrics::ProfileSignout signout_source_metric) override; |
| 43 override; | |
| 44 #endif | 43 #endif |
| 45 | 44 |
| 46 static KeyedService* Build(content::BrowserContext* context); | 45 static KeyedService* Build(content::BrowserContext* context); |
| 47 | 46 |
| 48 private: | 47 private: |
| 49 Profile* profile_; | 48 Profile* profile_; |
| 50 | 49 |
| 51 DISALLOW_COPY_AND_ASSIGN(FakeSigninManager); | 50 DISALLOW_COPY_AND_ASSIGN(FakeSigninManager); |
| 52 }; | 51 }; |
| 53 | 52 |
| 54 } // namespace gcm | 53 } // namespace gcm |
| 55 | 54 |
| 56 #endif // CHROME_BROWSER_SERVICES_GCM_FAKE_SIGNIN_MANAGER_H_ | 55 #endif // CHROME_BROWSER_SERVICES_GCM_FAKE_SIGNIN_MANAGER_H_ |
| OLD | NEW |