| Index: chrome/browser/signin/profile_oauth2_token_service_factory.cc
|
| diff --git a/chrome/browser/signin/profile_oauth2_token_service_factory.cc b/chrome/browser/signin/profile_oauth2_token_service_factory.cc
|
| index a8b65afc0a9e70fc8f5230aee26455dc2f700b58..41e074f2540769a5b8c7085fe8c19bba80a45d1c 100644
|
| --- a/chrome/browser/signin/profile_oauth2_token_service_factory.cc
|
| +++ b/chrome/browser/signin/profile_oauth2_token_service_factory.cc
|
| @@ -9,10 +9,11 @@
|
| #include "chrome/browser/signin/chrome_signin_client_factory.h"
|
| #include "chrome/browser/signin/signin_error_controller_factory.h"
|
| #include "chrome/browser/web_data_service_factory.h"
|
| +#include "chrome/common/features.h"
|
| #include "components/keyed_service/content/browser_context_dependency_manager.h"
|
| #include "components/signin/core/browser/profile_oauth2_token_service.h"
|
|
|
| -#if defined(OS_ANDROID)
|
| +#if BUILDFLAG(ANDROID_JAVA_UI)
|
| #include "chrome/browser/signin/oauth2_token_service_delegate_android.h"
|
| #else
|
| #include "chrome/browser/signin/mutable_profile_oauth2_token_service_delegate.h"
|
| @@ -50,7 +51,7 @@ ProfileOAuth2TokenServiceFactory*
|
| KeyedService* ProfileOAuth2TokenServiceFactory::BuildServiceInstanceFor(
|
| content::BrowserContext* context) const {
|
| Profile* profile = static_cast<Profile*>(context);
|
| -#if defined(OS_ANDROID)
|
| +#if BUILDFLAG(ANDROID_JAVA_UI)
|
| OAuth2TokenServiceDelegateAndroid* delegate =
|
| new OAuth2TokenServiceDelegateAndroid(
|
| AccountTrackerServiceFactory::GetInstance()->GetForProfile(profile));
|
|
|