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

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

Issue 1782583003: Puts the new Material Design User Manager behind a flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 9 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 57c99e7ed32f9b2fc875404cb4adbe06690f8114..a49776224f2478623298b5506478b33251119bb0 100644
--- a/components/signin/core/common/profile_management_switches.cc
+++ b/components/signin/core/common/profile_management_switches.cc
@@ -4,6 +4,8 @@
#include "components/signin/core/common/profile_management_switches.h"
+#include <string>
+
#include "base/command_line.h"
#include "base/feature_list.h"
#include "base/metrics/field_trial.h"
@@ -134,6 +136,10 @@ bool UsePasswordSeparatedSigninFlow() {
switches::kUsePasswordSeparatedSigninFlow);
}
+bool IsMaterialDesignUserManager() {
+ return base::FeatureList::IsEnabled(switches::kMaterialDesignUserManager);
+}
+
void EnableNewProfileManagementForTesting(base::CommandLine* command_line) {
command_line->AppendSwitch(switches::kEnableNewProfileManagement);
DCHECK(!command_line->HasSwitch(switches::kDisableNewProfileManagement));

Powered by Google App Engine
This is Rietveld 408576698