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

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

Issue 2627363002: Enabling new FRE and launch flow by default on Win 10. (Closed)
Patch Set: ChromeOS Unused Function 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
« no previous file with comments | « no previous file | chrome/browser/ui/startup/startup_browser_creator_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..9cd2785a68722b744654e6cf82d91ab96c19be6f 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.
« no previous file with comments | « no previous file | chrome/browser/ui/startup/startup_browser_creator_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698