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

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller_unittest.mm

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/cocoa/browser_window_controller_unittest.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller_unittest.mm b/chrome/browser/ui/cocoa/browser_window_controller_unittest.mm
index 2758102923e810cff0b5a01eb638268f0a94a6f5..06eb8c9089f1ae9ef3be9149c21a4116ae1e3b04 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller_unittest.mm
@@ -4,9 +4,10 @@
#import "chrome/browser/ui/cocoa/browser_window_controller.h"
+#include <memory>
+
#include "base/mac/mac_util.h"
#import "base/mac/scoped_nsobject.h"
-#include "base/memory/scoped_ptr.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/ui/browser_list.h"
@@ -228,9 +229,9 @@ TEST_F(BrowserWindowControllerTest, BookmarkBarToggleRespectMinWindowHeight) {
// TODO(jrg): This crashes trying to create the BookmarkBarController, adding
// an observer to the BookmarkModel.
TEST_F(BrowserWindowControllerTest, TestIncognitoWidthSpace) {
- scoped_ptr<TestingProfile> incognito_profile(new TestingProfile());
+ std::unique_ptr<TestingProfile> incognito_profile(new TestingProfile());
incognito_profile->set_off_the_record(true);
- scoped_ptr<Browser> browser(
+ std::unique_ptr<Browser> browser(
new Browser(Browser::CreateParams(incognito_profile.get())));
controller_.reset([[BrowserWindowController alloc]
initWithBrowser:browser.get()

Powered by Google App Engine
This is Rietveld 408576698