[signin][Mac] Using ProfileChooserView on macOS
The profile chooser menu on macOS is implemented with cocoa, with
ProfileChooserController. On Linux and Windows, ProfileChooserView is
used (based on toolkit-views).
This patch adds a feature flag (enabled by default) to use
ProfileChooserView on macOS.
The benefit is to have only one implementation on all 3 platforms.
Bug: 728141
Change-Id: Idf3099ac698dfa1e286ce23e6852390e8500b4b2
Reviewed-on: https://chromium-review.googlesource.com/750901
Commit-Queue: Jérôme Lebel <[email protected]>
Reviewed-by: Trent Apted <[email protected]>
Reviewed-by: Mihai Sardarescu <[email protected]>
Cr-Commit-Position: refs/heads/master@{#515523}
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
index 79b4bfa..53f0ad8 100644
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -2325,6 +2325,11 @@
const char kMacViewsNativeAppWindowsDescription[] =
"Controls whether to use Toolkit-Views based Chrome App windows.";
+const char kMacViewsProfileChooserName[] =
+ "Profile chooser menu with toolkit-views on Mac";
+const char kMacViewsProfileChooserDescription[] =
+ "Enables profile chooser menu based on toolkit-views, on Mac";
+
const char kMacViewsTaskManagerName[] = "Toolkit-Views Task Manager.";
const char kMacViewsTaskManagerDescription[] =
"Controls whether to use the Toolkit-Views based Task Manager.";