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

Unified Diff: chrome/browser/ui/cocoa/infobars/confirm_infobar_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/infobars/confirm_infobar_controller_unittest.mm
diff --git a/chrome/browser/ui/cocoa/infobars/confirm_infobar_controller_unittest.mm b/chrome/browser/ui/cocoa/infobars/confirm_infobar_controller_unittest.mm
index 93de71aa110f4b0698c5017c9479bbc9b3b31ca0..a76c639bc15e87f3a559b4c51b5b06ea1cdb0ed4 100644
--- a/chrome/browser/ui/cocoa/infobars/confirm_infobar_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/infobars/confirm_infobar_controller_unittest.mm
@@ -93,7 +93,7 @@ class ConfirmInfoBarControllerTest : public CocoaProfileTest,
WebContents::Create(WebContents::CreateParams(profile())));
InfoBarService::CreateForWebContents(web_contents_.get());
- scoped_ptr<infobars::InfoBarDelegate> delegate(
+ std::unique_ptr<infobars::InfoBarDelegate> delegate(
new MockConfirmInfoBarDelegate(this));
infobar_ = new InfoBarCocoa(std::move(delegate));
infobar_->SetOwner(InfoBarService::FromWebContents(web_contents_.get()));
@@ -140,7 +140,7 @@ class ConfirmInfoBarControllerTest : public CocoaProfileTest,
controller_.reset();
}
- scoped_ptr<WebContents> web_contents_;
+ std::unique_ptr<WebContents> web_contents_;
InfoBarCocoa* infobar_; // Weak, will delete itself.
bool delegate_closed_;
};
« no previous file with comments | « chrome/browser/ui/cocoa/infobars/confirm_infobar_controller.mm ('k') | chrome/browser/ui/cocoa/infobars/infobar_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698