Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(418)

Side by Side Diff: chrome/browser/services/gcm/fake_signin_manager.h

Issue 648653003: Standardize usage of virtual/override/final in chrome/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/services/gcm/fake_gcm_profile_service.cc ('k') | chrome/browser/services/gcm/gcm_account_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698