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

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: Move non-desktop OSes onto the AccountConsistency flag 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
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..7089c8b46f4c20487e1a4c6bc7891ccf80964dc7 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() {
+ // NewAvatarMenu is only available on desktop.
+#if defined(OS_ANDROID) || defined(OS_IOS) || defined(OS_CHROMEOS)
+ return false;
+#else
return GetProcessState() >= STATE_NEW_AVATAR_MENU;
+#endif
}
bool IsNewProfileManagement() {
+ // NewProfileManagement is only available on desktop.
Nikita (slow) 2014/08/15 14:56:13 That's not correct. On Chrome OS "new profile man
dzhioev (left Google) 2014/08/15 15:31:33 I don't know for sure. Chrome OS checks only IsEna
+#if defined(OS_ANDROID) || defined(OS_IOS) || defined(OS_CHROMEOS)
+ return false;
+#else
return GetProcessState() >= STATE_NEW_PROFILE_MANAGEMENT;
+#endif
}
bool IsNewProfileManagementPreviewEnabled() {

Powered by Google App Engine
This is Rietveld 408576698