Move session service and supervised users to buildflags.
The session service and supervised user flags used to be global build variables and defines.
This patch converts them to use the buildflag system to clean up the dependencies and scope the feature.
R=sky
TBR=dbeam (webui owners)
Review-Url: https://codereview.chromium.org/2468723003
Cr-Commit-Position: refs/heads/master@{#429107}
diff --git a/chrome/browser/supervised_user/supervised_users.h b/chrome/browser/supervised_user/supervised_users.h
index 82fcba6..a999368 100644
--- a/chrome/browser/supervised_user/supervised_users.h
+++ b/chrome/browser/supervised_user/supervised_users.h
@@ -5,9 +5,11 @@
#ifndef CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USERS_H_
#define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USERS_H_
+#include "chrome/common/features.h"
+
// Compile-time check to make sure that we don't include supervised user source
// files when ENABLE_SUPERVISED_USERS is not defined.
-#if !defined(ENABLE_SUPERVISED_USERS)
+#if !BUILDFLAG(ENABLE_SUPERVISED_USERS)
#error "Supervised users aren't enabled."
#endif