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

Unified Diff: chrome/browser/policy/browser_policy_connector.h

Issue 7562008: Add new version of enrollment screen supporting OAuth. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, fix nit. Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/browser_policy_connector.h
diff --git a/chrome/browser/policy/browser_policy_connector.h b/chrome/browser/policy/browser_policy_connector.h
index f1d6d65919d6b5b1e13009cebe49d9604025319d..d9196730ea9491e7aaced083e058265c26d39422 100644
--- a/chrome/browser/policy/browser_policy_connector.h
+++ b/chrome/browser/policy/browser_policy_connector.h
@@ -34,6 +34,12 @@ class UserPolicyTokenCache;
// respective classes.
class BrowserPolicyConnector : public NotificationObserver {
public:
+ // Indicates the type of token passed to SetDeviceCredentials.
+ enum TokenType {
+ TOKEN_TYPE_GAIA, // A gaia service token.
+ TOKEN_TYPE_OAUTH, // An OAuth v2 access token.
+ };
+
static BrowserPolicyConnector* Create();
virtual ~BrowserPolicyConnector();
@@ -64,7 +70,8 @@ class BrowserPolicyConnector : public NotificationObserver {
// Used to set the credentials stored in the data store associated
// with this policy connector.
void SetDeviceCredentials(const std::string& owner_email,
- const std::string& gaia_token);
+ const std::string& token,
+ TokenType token_type);
// Returns true if this device is managed by an enterprise (as opposed to
// a local owner).
« no previous file with comments | « chrome/browser/chromeos/login/enterprise_enrollment_screen_actor.h ('k') | chrome/browser/policy/browser_policy_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698