| Index: chrome/test/startup/feature_startup_test.cc
|
| ===================================================================
|
| --- chrome/test/startup/feature_startup_test.cc (revision 17078)
|
| +++ chrome/test/startup/feature_startup_test.cc (working copy)
|
| @@ -59,8 +59,8 @@
|
|
|
| // Switch to the "new tab" tab, which should be any new tab after the
|
| // first (the first is about:blank).
|
| - BrowserProxy* window = automation()->GetBrowserWindow(0);
|
| - ASSERT_TRUE(window);
|
| + scoped_refptr<BrowserProxy> window(automation()->GetBrowserWindow(0));
|
| + ASSERT_TRUE(window.get());
|
| int tab_count = -1;
|
| ASSERT_TRUE(window->GetTabCount(&tab_count));
|
| ASSERT_EQ(1, tab_count);
|
| @@ -80,7 +80,7 @@
|
| timings[i] = TimeDelta::FromMilliseconds(load_time);
|
| }
|
|
|
| - delete window;
|
| + window = NULL;
|
| UITest::TearDown();
|
| }
|
|
|
|
|