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

Unified Diff: chrome/browser/ui/startup/startup_browser_creator_browsertest.cc

Issue 20483002: Merge 3 different ways of obtaining first run state into a single one. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/ui/startup/startup_browser_creator_browsertest.cc
diff --git a/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc b/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc
index f34e7e482604954f5b0722b46ddcbb69047aa377..13c10b0fa9b1337551ea34ad1a03740579fdea8f 100644
--- a/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc
+++ b/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc
@@ -463,11 +463,6 @@ IN_PROC_BROWSER_TEST_F(StartupBrowserCreatorTest, SyncPromoNoWelcomePage) {
return;
#endif
- // Trick this test into thinking the promo has been shown for this profile; so
- // that it will show it again (otherwise it skips showing it since
- // --no-first-run is specified in browser tests).
- SyncPromoUI::DidShowSyncPromoAtStartup(browser()->profile());
gab 2013/07/26 15:41:13 This was originally required when I wrote these te
-
// Do a simple non-process-startup browser launch.
CommandLine dummy(CommandLine::NO_PROGRAM);
StartupBrowserCreatorImpl launch(base::FilePath(), dummy,
@@ -497,10 +492,6 @@ IN_PROC_BROWSER_TEST_F(StartupBrowserCreatorTest, SyncPromoWithWelcomePage) {
return;
#endif
- // Trick this test into thinking the promo has been shown for this profile; so
- // that it will show it again (otherwise it skips showing it since
- // --no-first-run is specified in browser tests).
- SyncPromoUI::DidShowSyncPromoAtStartup(browser()->profile());
first_run::SetShouldShowWelcomePage();
// Do a simple non-process-startup browser launch.
@@ -537,11 +528,6 @@ IN_PROC_BROWSER_TEST_F(StartupBrowserCreatorTest, SyncPromoWithFirstRunTabs) {
StartupBrowserCreator browser_creator;
browser_creator.AddFirstRunTab(test_server()->GetURL("files/title1.html"));
- // Trick this test into thinking the promo has been shown for this profile; so
- // that it will show it again (otherwise it skips showing it since
- // --no-first-run is specified in browser tests).
- SyncPromoUI::DidShowSyncPromoAtStartup(browser()->profile());
-
// The welcome page should not be shown, even if
// first_run::ShouldShowWelcomePage() says so, when there are already
// more than 2 first run tabs.
@@ -585,11 +571,6 @@ IN_PROC_BROWSER_TEST_F(StartupBrowserCreatorTest,
browser_creator.AddFirstRunTab(test_server()->GetURL("files/title1.html"));
browser_creator.AddFirstRunTab(GURL("http://welcome_page"));
- // Trick this test into thinking the promo has been shown for this profile; so
- // that it will show it again (otherwise it skips showing it since
- // --no-first-run is specified in browser tests).
- SyncPromoUI::DidShowSyncPromoAtStartup(browser()->profile());
-
// Do a simple non-process-startup browser launch.
CommandLine dummy(CommandLine::NO_PROGRAM);
StartupBrowserCreatorImpl launch(base::FilePath(), dummy, &browser_creator,
« chrome/browser/first_run/first_run.cc ('K') | « chrome/browser/first_run/first_run.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698