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

Unified Diff: chrome/browser/ui/cocoa/infobars/save_password_infobar_controller.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/save_password_infobar_controller.mm
diff --git a/chrome/browser/ui/cocoa/infobars/save_password_infobar_controller.mm b/chrome/browser/ui/cocoa/infobars/save_password_infobar_controller.mm
index aa3ecf91985f671fa49f877599768e78451f66ae..c3ca11f3ae016f71d7b7aa298727f24d6ae7e963 100644
--- a/chrome/browser/ui/cocoa/infobars/save_password_infobar_controller.mm
+++ b/chrome/browser/ui/cocoa/infobars/save_password_infobar_controller.mm
@@ -31,9 +31,9 @@
}
}
-scoped_ptr<infobars::InfoBar> CreateSavePasswordInfoBar
- (scoped_ptr<SavePasswordInfoBarDelegate> delegate) {
- scoped_ptr<InfoBarCocoa> infobar(new InfoBarCocoa(std::move(delegate)));
+std::unique_ptr<infobars::InfoBar> CreateSavePasswordInfoBar(
+ std::unique_ptr<SavePasswordInfoBarDelegate> delegate) {
+ std::unique_ptr<InfoBarCocoa> infobar(new InfoBarCocoa(std::move(delegate)));
base::scoped_nsobject<SavePasswordInfobarController> controller(
[[SavePasswordInfobarController alloc] initWithInfoBar:infobar.get()]);
infobar->set_controller(controller);

Powered by Google App Engine
This is Rietveld 408576698