| Index: chrome/browser/policy/browser_policy_connector.cc
|
| diff --git a/chrome/browser/policy/browser_policy_connector.cc b/chrome/browser/policy/browser_policy_connector.cc
|
| index 05eb972eb729927e307bf5c4961f360d7c542366..922a2ca73d3cfa78151c7d1883f0aeecc4b17fa7 100644
|
| --- a/chrome/browser/policy/browser_policy_connector.cc
|
| +++ b/chrome/browser/policy/browser_policy_connector.cc
|
| @@ -100,11 +100,21 @@ ConfigurationPolicyProvider*
|
|
|
| void BrowserPolicyConnector::SetDeviceCredentials(
|
| const std::string& owner_email,
|
| - const std::string& gaia_token) {
|
| + const std::string& token,
|
| + TokenType token_type) {
|
| #if defined(OS_CHROMEOS)
|
| if (device_data_store_.get()) {
|
| device_data_store_->set_user_name(owner_email);
|
| - device_data_store_->SetGaiaToken(gaia_token);
|
| + switch (token_type) {
|
| + case TOKEN_TYPE_OAUTH:
|
| + device_data_store_->SetOAuthToken(token);
|
| + break;
|
| + case TOKEN_TYPE_GAIA:
|
| + device_data_store_->SetGaiaToken(token);
|
| + break;
|
| + default:
|
| + NOTREACHED() << "Invalid token type " << token_type;
|
| + }
|
| }
|
| #endif
|
| }
|
|
|