Chromium Code Reviews| 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, |