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

Side by Side Diff: chrome/browser/sync/supervised_user_signin_manager_wrapper.h

Issue 2928823003: Make it possible to build without enable_supervised_users.
Patch Set: Does it still compile with the feature enabled? Created 3 years, 6 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_SYNC_SUPERVISED_USER_SIGNIN_MANAGER_WRAPPER_H_ 5 #ifndef CHROME_BROWSER_SYNC_SUPERVISED_USER_SIGNIN_MANAGER_WRAPPER_H_
6 #define CHROME_BROWSER_SYNC_SUPERVISED_USER_SIGNIN_MANAGER_WRAPPER_H_ 6 #define CHROME_BROWSER_SYNC_SUPERVISED_USER_SIGNIN_MANAGER_WRAPPER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "chrome/browser/supervised_user/supervised_users.h"
11 #include "components/sync/driver/signin_manager_wrapper.h" 12 #include "components/sync/driver/signin_manager_wrapper.h"
12 13
13 class Profile; 14 class Profile;
14 class SigninManagerBase; 15 class SigninManagerBase;
15 16
16 // Some chrome cloud services support supervised users as well as normally 17 // Some chrome cloud services support supervised users as well as normally
17 // authenticated users that sign in through SigninManager. To facilitate 18 // authenticated users that sign in through SigninManager. To facilitate
18 // getting the "effective" username and account identifiers, services can 19 // getting the "effective" username and account identifiers, services can
19 // use this class to wrap the SigninManager and return supervised user account 20 // use this class to wrap the SigninManager and return supervised user account
20 // information when appropriate. 21 // information when appropriate.
21 class SupervisedUserSigninManagerWrapper : public SigninManagerWrapper { 22 class SupervisedUserSigninManagerWrapper : public SigninManagerWrapper {
22 public: 23 public:
23 SupervisedUserSigninManagerWrapper(Profile* profile, 24 SupervisedUserSigninManagerWrapper(Profile* profile,
24 SigninManagerBase* original); 25 SigninManagerBase* original);
25 ~SupervisedUserSigninManagerWrapper() override; 26 ~SupervisedUserSigninManagerWrapper() override;
26 27
27 // SigninManagerWrapper implementation 28 // SigninManagerWrapper implementation
28 std::string GetEffectiveUsername() const override; 29 std::string GetEffectiveUsername() const override;
29 std::string GetAccountIdToUse() const override; 30 std::string GetAccountIdToUse() const override;
30 std::string GetSyncScopeToUse() const override; 31 std::string GetSyncScopeToUse() const override;
31 32
32 private: 33 private:
33 Profile* profile_; 34 Profile* profile_;
34 35
35 DISALLOW_COPY_AND_ASSIGN(SupervisedUserSigninManagerWrapper); 36 DISALLOW_COPY_AND_ASSIGN(SupervisedUserSigninManagerWrapper);
36 }; 37 };
37 38
38 #endif // CHROME_BROWSER_SYNC_SUPERVISED_USER_SIGNIN_MANAGER_WRAPPER_H_ 39 #endif // CHROME_BROWSER_SYNC_SUPERVISED_USER_SIGNIN_MANAGER_WRAPPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service_factory.cc ('k') | chrome/browser/themes/theme_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698