| 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 b5f9de5193d638d5b2bfc80a9f004629e00d0fdd..63d2becf57a4b0b98f410663871da2a79f0b2bf7 100644
|
| --- a/chrome/browser/ui/startup/session_crashed_infobar_delegate_unittest.cc
|
| +++ b/chrome/browser/ui/startup/session_crashed_infobar_delegate_unittest.cc
|
| @@ -5,6 +5,7 @@
|
| #include "chrome/browser/ui/startup/session_crashed_infobar_delegate.h"
|
|
|
| #include "base/files/scoped_temp_dir.h"
|
| +#include "base/memory/ptr_util.h"
|
| #include "base/run_loop.h"
|
| #include "chrome/browser/infobars/infobar_service.h"
|
| #include "chrome/browser/prefs/browser_prefs.h"
|
| @@ -51,13 +52,13 @@ class SessionCrashedInfoBarDelegateUnitTest : public BrowserWithTestWindowTest {
|
| TEST_F(SessionCrashedInfoBarDelegateUnitTest, DetachingTabWithCrashedInfoBar) {
|
| SessionServiceFactory::SetForTestProfile(
|
| browser()->profile(),
|
| - make_scoped_ptr(static_cast<SessionService*>(
|
| + base::WrapUnique(static_cast<SessionService*>(
|
| SessionServiceFactory::GetInstance()->BuildServiceInstanceFor(
|
| browser()->profile()))));
|
|
|
| // Create a browser which we can close during the test.
|
| Browser::CreateParams params(browser()->profile());
|
| - scoped_ptr<Browser> first_browser(
|
| + std::unique_ptr<Browser> first_browser(
|
| chrome::CreateBrowserWithTestWindowForParams(¶ms));
|
| AddTab(first_browser.get(), GURL(chrome::kChromeUINewTabURL));
|
|
|
| @@ -75,7 +76,7 @@ TEST_F(SessionCrashedInfoBarDelegateUnitTest, DetachingTabWithCrashedInfoBar) {
|
| ASSERT_TRUE(infobar);
|
|
|
| // Open another browser.
|
| - scoped_ptr<Browser> opened_browser(
|
| + std::unique_ptr<Browser> opened_browser(
|
| chrome::CreateBrowserWithTestWindowForParams(¶ms));
|
|
|
| // Move the tab which is destroying the crash info bar to the new browser.
|
|
|