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

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

Issue 2687573004: Enabling new FRE and launch flow by default on Win 10. (Closed)
Patch Set: Created 3 years, 10 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 ad7e48a26feb825b685b690869c25a3ec362de75..f8f9e399170866f38ca44106ab59ef484fbaef3c 100644
--- a/chrome/browser/policy/policy_browsertest.cc
+++ b/chrome/browser/policy/policy_browsertest.cc
@@ -2978,6 +2978,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