summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/tabs/pinned_tab_service_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/tabs/pinned_tab_service_unittest.cc')
-rw-r--r--chrome/browser/ui/tabs/pinned_tab_service_unittest.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/chrome/browser/ui/tabs/pinned_tab_service_unittest.cc b/chrome/browser/ui/tabs/pinned_tab_service_unittest.cc
index 2e57b7a..dd5935d 100644
--- a/chrome/browser/ui/tabs/pinned_tab_service_unittest.cc
+++ b/chrome/browser/ui/tabs/pinned_tab_service_unittest.cc
@@ -52,10 +52,9 @@ TEST_F(PinnedTabServiceTest, Popup) {
browser()->tab_strip_model()->SetTabPinned(0, true);
// Create a popup.
- scoped_ptr<Browser> popup(new Browser(Browser::TYPE_POPUP, profile()));
- scoped_ptr<TestBrowserWindow> popup_window(
- new TestBrowserWindow(popup.get()));
- popup->SetWindowForTesting(popup_window.get());
+ Browser::CreateParams params(Browser::TYPE_POPUP, profile());
+ scoped_ptr<Browser> popup(
+ chrome::CreateBrowserWithTestWindowForParams(&params));
// Close the browser. This should trigger saving the tabs. No need to destroy
// the browser (this happens automatically in the test destructor).
@@ -68,7 +67,6 @@ TEST_F(PinnedTabServiceTest, Popup) {
// Close the popup. This shouldn't reset the saved state.
chrome::CloseAllTabs(popup.get());
popup.reset(NULL);
- popup_window.reset(NULL);
// Check the state to make sure it hasn't changed.
result = PinnedTabTestUtils::TabsToString(