| 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 22 matching lines...) Expand all Loading... |
| 33 #endif | 33 #endif |
| 34 public: | 34 public: |
| 35 explicit FakeSigninManager(Profile* profile); | 35 explicit FakeSigninManager(Profile* profile); |
| 36 virtual ~FakeSigninManager(); | 36 virtual ~FakeSigninManager(); |
| 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 virtual void SignOut(signin_metrics::ProfileSignout signout_source_metric) |
| 43 OVERRIDE; | 43 override; |
| 44 #endif | 44 #endif |
| 45 | 45 |
| 46 static KeyedService* Build(content::BrowserContext* context); | 46 static KeyedService* Build(content::BrowserContext* context); |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 Profile* profile_; | 49 Profile* profile_; |
| 50 | 50 |
| 51 DISALLOW_COPY_AND_ASSIGN(FakeSigninManager); | 51 DISALLOW_COPY_AND_ASSIGN(FakeSigninManager); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace gcm | 54 } // namespace gcm |
| 55 | 55 |
| 56 #endif // CHROME_BROWSER_SERVICES_GCM_FAKE_SIGNIN_MANAGER_H_ | 56 #endif // CHROME_BROWSER_SERVICES_GCM_FAKE_SIGNIN_MANAGER_H_ |
| OLD | NEW |