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

Side by Side Diff: chrome/browser/managed_mode/managed_user_service.h

Issue 33173005: Correctly deal with tokens for supervised users in ProfileOAuth2TokenService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_MANAGED_MODE_MANAGED_USER_SERVICE_H_ 5 #ifndef CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_
6 #define CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_ 6 #define CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // Convenience method that registers this managed user using 123 // Convenience method that registers this managed user using
124 // |registration_utility| and initializes sync with the returned token. 124 // |registration_utility| and initializes sync with the returned token.
125 // The |callback| will be called when registration is complete, 125 // The |callback| will be called when registration is complete,
126 // whether it suceeded or not -- unless registration was cancelled manually, 126 // whether it suceeded or not -- unless registration was cancelled manually,
127 // in which case the callback will be ignored. 127 // in which case the callback will be ignored.
128 void RegisterAndInitSync(ManagedUserRegistrationUtility* registration_utility, 128 void RegisterAndInitSync(ManagedUserRegistrationUtility* registration_utility,
129 Profile* custodian_profile, 129 Profile* custodian_profile,
130 const std::string& managed_user_id, 130 const std::string& managed_user_id,
131 const AuthErrorCallback& callback); 131 const AuthErrorCallback& callback);
132 132
133 // Returns a pseudo-email address for systems that expect well-formed email
134 // addresses (like Sync), even though we're not signed in.
135 static const char* GetManagedUserPseudoEmail();
136
137 void set_elevated_for_testing(bool skip) { 133 void set_elevated_for_testing(bool skip) {
138 elevated_for_testing_ = skip; 134 elevated_for_testing_ = skip;
139 } 135 }
140 136
141 void AddNavigationBlockedCallback(const NavigationBlockedCallback& callback); 137 void AddNavigationBlockedCallback(const NavigationBlockedCallback& callback);
142 void DidBlockNavigation(content::WebContents* web_contents); 138 void DidBlockNavigation(content::WebContents* web_contents);
143 139
144 // extensions::ManagementPolicy::Provider implementation: 140 // extensions::ManagementPolicy::Provider implementation:
145 virtual std::string GetDebugPolicyProviderName() const OVERRIDE; 141 virtual std::string GetDebugPolicyProviderName() const OVERRIDE;
146 virtual bool UserMayLoad(const extensions::Extension* extension, 142 virtual bool UserMayLoad(const extensions::Extension* extension,
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 // Sets a profile in elevated state for testing if set to true. 255 // Sets a profile in elevated state for testing if set to true.
260 bool elevated_for_testing_; 256 bool elevated_for_testing_;
261 257
262 // True only when |Shutdown()| method has been called. 258 // True only when |Shutdown()| method has been called.
263 bool did_shutdown_; 259 bool did_shutdown_;
264 260
265 URLFilterContext url_filter_context_; 261 URLFilterContext url_filter_context_;
266 }; 262 };
267 263
268 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_ 264 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698