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

Unified Diff: components/signin/core/common/profile_management_switches.cc

Issue 480453002: Disable UI flags for non-desktop OSes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/signin/core/common/profile_management_switches.cc
diff --git a/components/signin/core/common/profile_management_switches.cc b/components/signin/core/common/profile_management_switches.cc
index e51c77e79dfb238216904bb3cfacebf5885d480e..9b6d3a4b123f98635acbc0e5f0ed7a030bf991f2 100644
--- a/components/signin/core/common/profile_management_switches.cc
+++ b/components/signin/core/common/profile_management_switches.cc
@@ -144,11 +144,21 @@ bool IsGoogleProfileInfo() {
}
bool IsNewAvatarMenu() {
+ // Non-desktop OSes never have NewAvatarMenu or related functionality.
noms (inactive) 2014/08/15 13:29:30 nit: I would rephrase this as "NewAvatarMenu funct
Mike Lerman 2014/08/15 13:35:57 Done like Dunn's.
+#if defined(OS_ANDROID) || defined(OS_IOS) || defined(OS_CHROMEOS)
+ return false;
+#else
return GetProcessState() >= STATE_NEW_AVATAR_MENU;
+#endif
}
bool IsNewProfileManagement() {
+ // Non-desktop OSes never have NewProfileManagement or related functionality.
+#if defined(OS_ANDROID) || defined(OS_IOS) || defined(OS_CHROMEOS)
+ return false;
+#else
return GetProcessState() >= STATE_NEW_PROFILE_MANAGEMENT;
+#endif
}
bool IsNewProfileManagementPreviewEnabled() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698