| Index: components/policy/core/common/cloud/cloud_policy_client_registration_helper.cc
|
| diff --git a/components/policy/core/common/cloud/cloud_policy_client_registration_helper.cc b/components/policy/core/common/cloud/cloud_policy_client_registration_helper.cc
|
| index 47b7350f1dfbba559e1fa4438cea37a05122e9c1..518a48a75d792b5e5ddcbb836b2e3e9838567396 100644
|
| --- a/components/policy/core/common/cloud/cloud_policy_client_registration_helper.cc
|
| +++ b/components/policy/core/common/cloud/cloud_policy_client_registration_helper.cc
|
| @@ -15,7 +15,7 @@
|
| #include "google_apis/gaia/oauth2_token_service.h"
|
| #include "net/url_request/url_request_context_getter.h"
|
|
|
| -#if !defined(OS_ANDROID)
|
| +#if !defined(OS_ANDROID) || defined(USE_AURA)
|
| #include "google_apis/gaia/oauth2_access_token_consumer.h"
|
| #include "google_apis/gaia/oauth2_access_token_fetcher_impl.h"
|
| #endif
|
| @@ -90,7 +90,7 @@ void CloudPolicyClientRegistrationHelper::TokenServiceHelper::OnGetTokenFailure(
|
| callback_.Run("");
|
| }
|
|
|
| -#if !defined(OS_ANDROID)
|
| +#if !defined(OS_ANDROID) || defined(USE_AURA)
|
| // This class fetches the OAuth2 token scoped for the userinfo and DM services.
|
| // It uses an OAuth2AccessTokenFetcher to fetch it, given a login refresh token
|
| // that can be used to authorize that request. This class is not needed on
|
| @@ -183,7 +183,7 @@ void CloudPolicyClientRegistrationHelper::StartRegistration(
|
| base::Unretained(this)));
|
| }
|
|
|
| -#if !defined(OS_ANDROID)
|
| +#if !defined(OS_ANDROID) || defined(USE_AURA)
|
| void CloudPolicyClientRegistrationHelper::StartRegistrationWithLoginToken(
|
| const std::string& login_refresh_token,
|
| const base::Closure& callback) {
|
|
|