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

Unified Diff: chrome/browser/sync/supervised_user_signin_manager_wrapper.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
Index: chrome/browser/sync/supervised_user_signin_manager_wrapper.cc
diff --git a/chrome/browser/sync/supervised_user_signin_manager_wrapper.cc b/chrome/browser/sync/supervised_user_signin_manager_wrapper.cc
index 2e197af2e4d0d2c824642c296a89ba10ecb35ad5..c8b7304079f954d2248f769c8a19c30f40ee4e99 100644
--- a/chrome/browser/sync/supervised_user_signin_manager_wrapper.cc
+++ b/chrome/browser/sync/supervised_user_signin_manager_wrapper.cc
@@ -5,10 +5,11 @@
#include "chrome/browser/sync/supervised_user_signin_manager_wrapper.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/common/features.h"
#include "components/signin/core/browser/signin_manager_base.h"
#include "google_apis/gaia/gaia_constants.h"
-#if defined(ENABLE_SUPERVISED_USERS)
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
#include "chrome/browser/supervised_user/supervised_user_constants.h"
#endif
@@ -20,7 +21,7 @@ SupervisedUserSigninManagerWrapper::SupervisedUserSigninManagerWrapper(
SupervisedUserSigninManagerWrapper::~SupervisedUserSigninManagerWrapper() {}
std::string SupervisedUserSigninManagerWrapper::GetEffectiveUsername() const {
-#if defined(ENABLE_SUPERVISED_USERS)
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
if (profile_->IsLegacySupervised())
return supervised_users::kSupervisedUserPseudoEmail;
#endif
@@ -28,7 +29,7 @@ std::string SupervisedUserSigninManagerWrapper::GetEffectiveUsername() const {
}
std::string SupervisedUserSigninManagerWrapper::GetAccountIdToUse() const {
-#if defined(ENABLE_SUPERVISED_USERS)
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
if (profile_->IsLegacySupervised())
return supervised_users::kSupervisedUserPseudoEmail;
#endif
@@ -36,7 +37,7 @@ std::string SupervisedUserSigninManagerWrapper::GetAccountIdToUse() const {
}
std::string SupervisedUserSigninManagerWrapper::GetSyncScopeToUse() const {
-#if defined(ENABLE_SUPERVISED_USERS)
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
if (profile_->IsLegacySupervised())
return GaiaConstants::kChromeSyncSupervisedOAuth2Scope;
#endif
« no previous file with comments | « chrome/browser/sync/sessions/notification_service_sessions_router.cc ('k') | chrome/browser/themes/theme_properties.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698