diff options
Diffstat (limited to 'chrome/browser/dom_ui')
-rw-r--r-- | chrome/browser/dom_ui/dom_ui_unittest.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/chrome/browser/dom_ui/dom_ui_unittest.cc b/chrome/browser/dom_ui/dom_ui_unittest.cc index 678229d4..0172837 100644 --- a/chrome/browser/dom_ui/dom_ui_unittest.cc +++ b/chrome/browser/dom_ui/dom_ui_unittest.cc @@ -84,9 +84,6 @@ class DOMUITest : public RenderViewHostTestHarness { // TabContents when we first navigate to a DOM UI page, then to a standard // non-DOM-UI page. TEST_F(DOMUITest, DOMUIToStandard) { - // The sync service must be created to host the sync NTP advertisement. - profile_->CreateProfileSyncService(); - DoNavigationTest(contents(), 1); // Test the case where we're not doing the initial navigation. This is @@ -99,9 +96,6 @@ TEST_F(DOMUITest, DOMUIToStandard) { } TEST_F(DOMUITest, DOMUIToDOMUI) { - // The sync service must be created to host the sync NTP advertisement. - profile_->CreateProfileSyncService(); - // Do a load (this state is tested above). GURL new_tab_url(chrome::kChromeUINewTabURL); controller().LoadURL(new_tab_url, GURL(), PageTransition::LINK); @@ -137,9 +131,6 @@ TEST_F(DOMUITest, StandardToDOMUI) { EXPECT_FALSE(contents()->ShouldShowBookmarkBar()); EXPECT_FALSE(contents()->FocusLocationBarByDefault()); - // The sync service must be created to host the sync NTP advertisement. - profile_->CreateProfileSyncService(); - // Start a pending load for a DOMUI. GURL new_tab_url(chrome::kChromeUINewTabURL); controller().LoadURL(new_tab_url, GURL(), PageTransition::LINK); @@ -172,7 +163,6 @@ TEST_F(DOMUITest, FocusOnNavigate) { tc->controller().CopyStateFrom(controller()); scoped_ptr<TestTabContents> tc_scoped_ptr(tc); contents_.swap(tc_scoped_ptr); - profile_->CreateProfileSyncService(); int page_id = 200; // Load the NTP. |