Activate profile menu shortcut for incognito mode in ChromeOS.

Profile menu shortcut was disabled on ChromeOS as none of the profile
menus were used on ChromeOS before.
Now Incognito menu is available in incognito mode for all desktop
platforms and hence the shortcut is activated.

Bug: 896235
Change-Id: If065b43fffb44e093f4a89a8d751162c8a78e0a9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1569207
Commit-Queue: Ramin Halavati <[email protected]>
Reviewed-by: Peter Kasting <[email protected]>
Cr-Commit-Position: refs/heads/master@{#651608}
diff --git a/chrome/browser/ui/browser_command_controller.cc b/chrome/browser/ui/browser_command_controller.cc
index 7cb9173..0665fbf 100644
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -916,11 +916,13 @@
                                         !guest_session);
 #if defined(OS_CHROMEOS)
   command_updater_.UpdateCommandEnabled(IDC_TAKE_SCREENSHOT, true);
-#else
-  // Chrome OS uses the system tray menu to handle multi-profiles.
-  if (normal_window && (guest_session || !profile()->IsOffTheRecord())) {
+  // Chrome OS uses the system tray menu to handle multi-profiles. Avatar menu
+  // is only required in incognito mode.
+  if (profile()->IsIncognito())
     command_updater_.UpdateCommandEnabled(IDC_SHOW_AVATAR_MENU, true);
-  }
+#else
+  if (normal_window)
+    command_updater_.UpdateCommandEnabled(IDC_SHOW_AVATAR_MENU, true);
 #endif
 
   UpdateShowSyncState(true);