| Index: chrome/test/base/testing_profile.cc
|
| diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
|
| index a383321a64df4f937f4e49fddc517e6f6c82e4ff..461049dd9526709d50191a90b0cc623195f6ba66 100644
|
| --- a/chrome/test/base/testing_profile.cc
|
| +++ b/chrome/test/base/testing_profile.cc
|
| @@ -49,6 +49,7 @@
|
| #include "chrome/browser/web_data_service_factory.h"
|
| #include "chrome/common/chrome_constants.h"
|
| #include "chrome/common/chrome_switches.h"
|
| +#include "chrome/common/features.h"
|
| #include "chrome/common/pref_names.h"
|
| #include "chrome/common/url_constants.h"
|
| #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
|
| @@ -117,7 +118,7 @@
|
| #include "chrome/browser/signin/oauth2_token_service_delegate_android.h"
|
| #endif
|
|
|
| -#if defined(ENABLE_SUPERVISED_USERS)
|
| +#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
|
| #include "chrome/browser/supervised_user/supervised_user_constants.h"
|
| #include "chrome/browser/supervised_user/supervised_user_pref_store.h"
|
| #include "chrome/browser/supervised_user/supervised_user_settings_service.h"
|
| @@ -435,7 +436,7 @@ void TestingProfile::Init() {
|
| ChromeBrowserMainExtraPartsProfiles::
|
| EnsureBrowserContextKeyedServiceFactoriesBuilt();
|
|
|
| -#if defined(ENABLE_SUPERVISED_USERS)
|
| +#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
|
| if (!IsOffTheRecord()) {
|
| SupervisedUserSettingsService* settings_service =
|
| SupervisedUserSettingsServiceFactory::GetForProfile(this);
|
| @@ -740,7 +741,7 @@ bool TestingProfile::IsSupervised() const {
|
| }
|
|
|
| bool TestingProfile::IsChild() const {
|
| -#if defined(ENABLE_SUPERVISED_USERS)
|
| +#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
|
| return supervised_user_id_ == supervised_users::kChildAccountSUID;
|
| #else
|
| return false;
|
|
|