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

Unified Diff: chrome/browser/first_run/first_run.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/first_run/first_run.cc
diff --git a/chrome/browser/first_run/first_run.cc b/chrome/browser/first_run/first_run.cc
index f1737c18131025190b51ca0ce8c34f2654e23a1d..29fcd2cfeba741f923e12c169885e75c2d11aa00 100644
--- a/chrome/browser/first_run/first_run.cc
+++ b/chrome/browser/first_run/first_run.cc
@@ -33,6 +33,7 @@
#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/browser/ui/global_error/global_error_service.h"
#include "chrome/browser/ui/global_error/global_error_service_factory.h"
+#include "chrome/browser/ui/sync/one_click_signin_helper.h"
#include "chrome/browser/ui/webui/ntp/new_tab_ui.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
@@ -532,8 +533,7 @@ void FirstRunBubbleLauncher::Observe(
content::WebContents* contents = chrome::GetActiveWebContents(browser);
// Suppress the first run bubble if a Gaia sign in page is showing.
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kUseWebBasedSigninFlow) &&
+ if (OneClickSigninHelper::UseWebBasedSigninFlow() &&
gaia::IsGaiaSignonRealm(contents->GetURL().GetOrigin())) {
return;
}

Powered by Google App Engine
This is Rietveld 408576698