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

Unified Diff: chrome/browser/ui/browser_command_controller_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
« no previous file with comments | « chrome/browser/ui/browser_close_unittest.cc ('k') | chrome/browser/ui/browser_finder_chromeos_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_command_controller_unittest.cc
diff --git a/chrome/browser/ui/browser_command_controller_unittest.cc b/chrome/browser/ui/browser_command_controller_unittest.cc
index 23746a31c27874d307d1303545d1f24f21475c98..0a5532d6b494538e57b03488ac553945e20c074d 100644
--- a/chrome/browser/ui/browser_command_controller_unittest.cc
+++ b/chrome/browser/ui/browser_command_controller_unittest.cc
@@ -227,12 +227,12 @@ TEST_F(BrowserCommandControllerTest, AvatarMenuAlwaysDisabledInIncognitoMode) {
// Set up a profile with an off the record profile.
TestingProfile::Builder normal_builder;
- scoped_ptr<TestingProfile> original_profile = normal_builder.Build();
+ std::unique_ptr<TestingProfile> original_profile = normal_builder.Build();
// Create a new browser based on the off the record profile.
Browser::CreateParams profile_params(
original_profile->GetOffTheRecordProfile());
- scoped_ptr<Browser> otr_browser(
+ std::unique_ptr<Browser> otr_browser(
chrome::CreateBrowserWithTestWindowForParams(&profile_params));
chrome::BrowserCommandController command_controller(otr_browser.get());
@@ -400,14 +400,14 @@ TEST_F(BrowserCommandControllerFullscreenTest,
TEST_F(BrowserCommandControllerTest, IncognitoModeOnSigninAllowedPrefChange) {
// Set up a profile with an off the record profile.
- scoped_ptr<TestingProfile> profile1 = TestingProfile::Builder().Build();
+ std::unique_ptr<TestingProfile> profile1 = TestingProfile::Builder().Build();
Profile* profile2 = profile1->GetOffTheRecordProfile();
EXPECT_EQ(profile2->GetOriginalProfile(), profile1.get());
// Create a new browser based on the off the record profile.
Browser::CreateParams profile_params(profile1->GetOffTheRecordProfile());
- scoped_ptr<Browser> browser2(
+ std::unique_ptr<Browser> browser2(
chrome::CreateBrowserWithTestWindowForParams(&profile_params));
chrome::BrowserCommandController command_controller(browser2.get());
« no previous file with comments | « chrome/browser/ui/browser_close_unittest.cc ('k') | chrome/browser/ui/browser_finder_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698