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..0dc12e859905463ca083f53eb3a62147ca4b56e1 100644 |
--- a/chrome/browser/first_run/first_run.cc |
+++ b/chrome/browser/first_run/first_run.cc |
@@ -34,6 +34,7 @@ |
#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/webui/ntp/new_tab_ui.h" |
+#include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h" |
#include "chrome/common/chrome_paths.h" |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/pref_names.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 (SyncPromoUI::UseWebBasedSigninFlow() && |
gaia::IsGaiaSignonRealm(contents->GetURL().GetOrigin())) { |
return; |
} |