Index: chrome/browser/sync/chrome_sync_client.cc |
diff --git a/chrome/browser/sync/chrome_sync_client.cc b/chrome/browser/sync/chrome_sync_client.cc |
index 20ff3ece4ef07b4eac78a2ab753e622a44279fb2..42506ddc87b82bf5f704f6a0f1064ee9bd9c0d97 100644 |
--- a/chrome/browser/sync/chrome_sync_client.cc |
+++ b/chrome/browser/sync/chrome_sync_client.cc |
@@ -79,7 +79,7 @@ |
#include "chrome/browser/sync/glue/extension_setting_data_type_controller.h" |
#endif |
-#if defined(ENABLE_SUPERVISED_USERS) |
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS) |
#include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.h" |
#include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service_factory.h" |
#include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h" |
@@ -376,7 +376,7 @@ ChromeSyncClient::GetSyncableServiceForType(syncer::ModelType type) { |
return favicons ? favicons->AsWeakPtr() |
: base::WeakPtr<syncer::SyncableService>(); |
} |
-#if defined(ENABLE_SUPERVISED_USERS) |
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS) |
case syncer::SUPERVISED_USER_SETTINGS: |
return SupervisedUserSettingsServiceFactory::GetForProfile(profile_)-> |
AsWeakPtr(); |
@@ -586,7 +586,7 @@ void ChromeSyncClient::RegisterDesktopDataTypes( |
} |
#endif |
-#if defined(ENABLE_SUPERVISED_USERS) |
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS) |
sync_service->RegisterDataTypeController( |
base::MakeUnique<SupervisedUserSyncDataTypeController>( |
syncer::SUPERVISED_USER_SETTINGS, error_callback, this, profile_)); |
@@ -623,7 +623,7 @@ void ChromeSyncClient::RegisterAndroidDataTypes( |
syncer::ModelTypeSet enabled_types) { |
base::Closure error_callback = |
base::Bind(&syncer::ReportUnrecoverableError, chrome::GetChannel()); |
-#if defined(ENABLE_SUPERVISED_USERS) |
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS) |
sync_service->RegisterDataTypeController( |
base::MakeUnique<SupervisedUserSyncDataTypeController>( |
syncer::SUPERVISED_USER_SETTINGS, error_callback, this, profile_)); |