Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Unified Diff: chrome/browser/ui/startup/session_crashed_infobar_delegate_unittest.cc

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(&params));
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(&params));
// Move the tab which is destroying the crash info bar to the new browser.
« no previous file with comments | « chrome/browser/ui/startup/session_crashed_infobar_delegate.cc ('k') | chrome/browser/ui/startup/startup_browser_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698