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

Unified Diff: chrome/browser/policy/policy_browsertest.cc

Issue 2627363002: Enabling new FRE and launch flow by default on Win 10. (Closed)
Patch Set: ProfilesWithoutPages update Created 3 years, 11 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: chrome/browser/policy/policy_browsertest.cc
diff --git a/chrome/browser/policy/policy_browsertest.cc b/chrome/browser/policy/policy_browsertest.cc
index 96c9bf29101755209eadb5e318d6ea1f80cf60ea..ea5d4918f3ec1ea87215d5d53e3e0a58696b7c6a 100644
--- a/chrome/browser/policy/policy_browsertest.cc
+++ b/chrome/browser/policy/policy_browsertest.cc
@@ -2977,6 +2977,16 @@ class RestoreOnStartupPolicyTest
};
IN_PROC_BROWSER_TEST_P(RestoreOnStartupPolicyTest, PRE_RunTest) {
+ // Do not show Welcome Page.
+ browser()->profile()->GetPrefs()->SetBoolean(
+ prefs::kHasSeenWelcomePage, true);
+
+#if defined(OS_WIN)
+ // Do not show the Windows 10 promo page.
+ g_browser_process->local_state()->SetBoolean(
+ prefs::kHasSeenWin10PromoPage, true);
+#endif
+
// Open some tabs to verify if they are restored after the browser restarts.
// Most policy settings override this, except kPrefValueLast which enforces
// a restore.

Powered by Google App Engine
This is Rietveld 408576698