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

Side by Side Diff: chrome/browser/supervised_user/supervised_user_service.h

Issue 1078713002: Supervised users: Re-check ManagementPolicy when ProfileIsSupervised changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: shaving the yak Created 5 years, 8 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_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_
6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ 6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 std::string GetCustodianName() const; 122 std::string GetCustodianName() const;
123 123
124 // Returns the email address of the second custodian, or the empty string 124 // Returns the email address of the second custodian, or the empty string
125 // if there is no second custodian. 125 // if there is no second custodian.
126 std::string GetSecondCustodianEmailAddress() const; 126 std::string GetSecondCustodianEmailAddress() const;
127 127
128 // Returns the name of the second custodian, or the email address if the name 128 // Returns the name of the second custodian, or the email address if the name
129 // is empty, or the empty string is there is no second custodian. 129 // is empty, or the empty string is there is no second custodian.
130 std::string GetSecondCustodianName() const; 130 std::string GetSecondCustodianName() const;
131 131
132 // Initializes this object. This method does nothing if the profile is not 132 // Initializes this object.
133 // supervised.
134 void Init(); 133 void Init();
135 134
136 // Initializes this profile for syncing, using the provided |refresh_token| to 135 // Initializes this profile for syncing, using the provided |refresh_token| to
137 // mint access tokens for Sync. 136 // mint access tokens for Sync.
138 void InitSync(const std::string& refresh_token); 137 void InitSync(const std::string& refresh_token);
139 138
140 // Convenience method that registers this supervised user using 139 // Convenience method that registers this supervised user using
141 // |registration_utility| and initializes sync with the returned token. 140 // |registration_utility| and initializes sync with the returned token.
142 // The |callback| will be called when registration is complete, 141 // The |callback| will be called when registration is complete,
143 // whether it succeeded or not -- unless registration was cancelled manually, 142 // whether it succeeded or not -- unless registration was cancelled manually,
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 346
348 // Used to create permission requests. 347 // Used to create permission requests.
349 ScopedVector<PermissionRequestCreator> permissions_creators_; 348 ScopedVector<PermissionRequestCreator> permissions_creators_;
350 349
351 ObserverList<SupervisedUserServiceObserver> observer_list_; 350 ObserverList<SupervisedUserServiceObserver> observer_list_;
352 351
353 base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_; 352 base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_;
354 }; 353 };
355 354
356 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ 355 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_info_cache_observer.h ('k') | chrome/browser/supervised_user/supervised_user_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698