Index: chrome/browser/extensions/extension_service.cc |
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc |
index 057485688ee7312b7c525c1fafbe10955a8b734b..4cecaddab3e02cc9e9697c9d3f7a01d4ab746468 100644 |
--- a/chrome/browser/extensions/extension_service.cc |
+++ b/chrome/browser/extensions/extension_service.cc |
@@ -61,6 +61,7 @@ |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/crash_keys.h" |
#include "chrome/common/extensions/extension_constants.h" |
+#include "chrome/common/features.h" |
#include "chrome/common/url_constants.h" |
#include "components/content_settings/core/browser/host_content_settings_map.h" |
#include "components/crx_file/id_util.h" |
@@ -95,7 +96,7 @@ |
#include "extensions/common/permissions/permission_message_provider.h" |
#include "extensions/common/permissions/permissions_data.h" |
-#if defined(ENABLE_SUPERVISED_USERS) |
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS) |
#include "chrome/browser/supervised_user/supervised_user_service.h" |
#include "chrome/browser/supervised_user/supervised_user_service_factory.h" |
#endif |
@@ -1684,7 +1685,7 @@ void ExtensionService::CheckPermissionsIncrease(const Extension* extension, |
if (!extension_prefs_->DidExtensionEscalatePermissions(extension->id())) |
RecordPermissionMessagesHistogram(extension, "AutoDisable"); |
-#if defined(ENABLE_SUPERVISED_USERS) |
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS) |
// If a custodian-installed extension is disabled for a supervised user due |
// to a permissions increase, send a request to the custodian. |
if (extensions::util::IsExtensionSupervised(extension, profile_) && |