Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8446)

Unified Diff: chrome/browser/ui/webui/browsing_history_handler.cc

Issue 2468723003: Move session service and supervised users to buildflags. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/tab_helpers.cc ('k') | chrome/browser/ui/webui/extensions/extension_settings_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « chrome/browser/ui/tab_helpers.cc ('k') | chrome/browser/ui/webui/extensions/extension_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698