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). |