Index: chrome/browser/ui/startup/session_crashed_infobar_delegate_unittest.cc |
diff --git a/chrome/browser/ui/startup/session_crashed_infobar_delegate_unittest.cc b/chrome/browser/ui/startup/session_crashed_infobar_delegate_unittest.cc |
index d3d9c4d26ae1c01a35ca69cb102ee8b7363eca87..1bb6a04727eb1c98a26dc8b4867b5b773876e512 100644 |
--- a/chrome/browser/ui/startup/session_crashed_infobar_delegate_unittest.cc |
+++ b/chrome/browser/ui/startup/session_crashed_infobar_delegate_unittest.cc |
@@ -51,9 +51,9 @@ class SessionCrashedInfoBarDelegateUnitTest : public BrowserWithTestWindowTest { |
TEST_F(SessionCrashedInfoBarDelegateUnitTest, DetachingTabWithCrashedInfoBar) { |
SessionServiceFactory::SetForTestProfile( |
browser()->profile(), |
- static_cast<SessionService*>( |
+ make_scoped_ptr(static_cast<SessionService*>( |
SessionServiceFactory::GetInstance()->BuildServiceInstanceFor( |
- browser()->profile()))); |
+ browser()->profile())))); |
// Create a browser which we can close during the test. |
Browser::CreateParams params(browser()->profile(), |