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

Unified Diff: chrome/browser/profiles/avatar_menu.h

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/prefs/chrome_pref_service_factory.cc ('k') | chrome/browser/profiles/avatar_menu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/avatar_menu.h
diff --git a/chrome/browser/profiles/avatar_menu.h b/chrome/browser/profiles/avatar_menu.h
index b3ac4db467023a22cc96c4aff4ef8ebce82d97a1..de0ff3dd685d02ad455cd55771c4d6f346a0c914 100644
--- a/chrome/browser/profiles/avatar_menu.h
+++ b/chrome/browser/profiles/avatar_menu.h
@@ -17,11 +17,12 @@
#include "base/strings/string16.h"
#include "chrome/browser/profiles/profile_attributes_storage.h"
#include "chrome/browser/profiles/profile_metrics.h"
+#include "chrome/common/features.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_observer.h"
#include "ui/gfx/image/image.h"
-#if defined(ENABLE_SUPERVISED_USERS)
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
#include "chrome/browser/supervised_user/supervised_user_service_observer.h"
#endif
@@ -39,7 +40,7 @@ class SupervisedUserService;
// data changes, and the view for this model should forward actions
// back to it in response to user events.
class AvatarMenu :
-#if defined(ENABLE_SUPERVISED_USERS)
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
public SupervisedUserServiceObserver,
#endif
public ProfileAttributesStorage::Observer {
@@ -161,7 +162,7 @@ class AvatarMenu :
const base::FilePath& profile_path) override;
void OnProfileIsOmittedChanged(const base::FilePath& profile_path) override;
-#if defined(ENABLE_SUPERVISED_USERS)
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
// SupervisedUserServiceObserver:
void OnCustodianInfoChanged() override;
#endif
@@ -175,7 +176,7 @@ class AvatarMenu :
// The controller for avatar menu actions.
std::unique_ptr<AvatarMenuActions> menu_actions_;
-#if defined(ENABLE_SUPERVISED_USERS)
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
// Observes changes to a supervised user's custodian info.
ScopedObserver<SupervisedUserService, SupervisedUserServiceObserver>
supervised_user_observer_;
« no previous file with comments | « chrome/browser/prefs/chrome_pref_service_factory.cc ('k') | chrome/browser/profiles/avatar_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698