Index: chrome/browser/ui/webui/browsing_history_handler.cc |
diff --git a/chrome/browser/ui/webui/browsing_history_handler.cc b/chrome/browser/ui/webui/browsing_history_handler.cc |
index b6e8fd16b5e774bfe3678d59085f57ad6a0b7cab..ff73ad0bcad0ad1fb0ea88b6b6ca1f4c13541c3c 100644 |
--- a/chrome/browser/ui/webui/browsing_history_handler.cc |
+++ b/chrome/browser/ui/webui/browsing_history_handler.cc |
@@ -65,7 +65,7 @@ |
#include "chrome/browser/extensions/activity_log/activity_log.h" |
#endif |
-#if defined(ENABLE_SUPERVISED_USERS) |
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS) |
#include "chrome/browser/supervised_user/supervised_user_navigation_observer.h" |
#include "chrome/browser/supervised_user/supervised_user_service.h" |
#include "chrome/browser/supervised_user/supervised_user_service_factory.h" |
@@ -300,7 +300,7 @@ BrowsingHistoryHandler::HistoryEntry::ToValue( |
result->SetString("deviceName", device_name); |
result->SetString("deviceType", device_type); |
-#if defined(ENABLE_SUPERVISED_USERS) |
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS) |
if (supervised_user_service) { |
const SupervisedUserURLFilter* url_filter = |
supervised_user_service->GetURLFilterForUIThread(); |
@@ -762,7 +762,7 @@ void BrowsingHistoryHandler::ReturnResultsToFrontEnd() { |
BookmarkModel* bookmark_model = |
BookmarkModelFactory::GetForBrowserContext(profile); |
SupervisedUserService* supervised_user_service = NULL; |
-#if defined(ENABLE_SUPERVISED_USERS) |
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS) |
if (profile->IsSupervised()) |
supervised_user_service = |
SupervisedUserServiceFactory::GetForProfile(profile); |