Commit 94966202 authored by mlerman's avatar mlerman Committed by Commit bot

Disable UI flags for non-desktop OSes

This is mostly to prevent the high res avatars from being downloaded when not necessary, and will also prevent any other non-UI side effects which are undesired on non-desktop OSes.

BUG=404066, 411428

Committed: https://chromium.googlesource.com/chromium/src/+/8003a95bb88e1d25ad59251b5d7e8609d76e5669

Review URL: https://codereview.chromium.org/480453002

Cr-Commit-Position: refs/heads/master@{#293723}
parent 479004ba
...@@ -144,7 +144,12 @@ bool IsGoogleProfileInfo() { ...@@ -144,7 +144,12 @@ bool IsGoogleProfileInfo() {
} }
bool IsNewAvatarMenu() { 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; return GetProcessState() >= STATE_NEW_AVATAR_MENU;
#endif
} }
bool IsNewProfileManagement() { bool IsNewProfileManagement() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment