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

Unified Diff: chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc

Issue 11316299: Enable web-based sign in flow by default. Can use command line argument (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years 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: chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc
diff --git a/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc b/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc
index 214f9cca2d90f466ebfca62f48e74b778030fd7e..e9129aae51f2cc0ffc3bad3a2ea46ded3e8fdba7 100644
--- a/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc
+++ b/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc
@@ -71,13 +71,6 @@ bool AllowPromoAtStartupForCurrentBrand() {
return true;
}
-bool UseWebBasedSigninFlow() {
- const bool use_web_based_singin_flow =
- CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kUseWebBasedSigninFlow);
- return use_web_based_singin_flow;
-}
-
// The Web UI data source for the sync promo page.
class SyncPromoUIHTMLSource : public ChromeWebUIDataSource {
public:
@@ -303,3 +296,13 @@ bool SyncPromoUI::GetAutoCloseForSyncPromoURL(const GURL& url) {
}
return false;
}
+
+// static
+bool SyncPromoUI::UseWebBasedSigninFlow() {
+#if defined(ENABLE_ONE_CLICK_SIGNIN)
+ return !CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kUseClientLoginSigninFlow);
+#else
+ return false;
+#endif
+}

Powered by Google App Engine
This is Rietveld 408576698