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

Unified Diff: ios/chrome/browser/infobars/infobar_utils.mm

Issue 1861593005: Convert //ios 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 | « ios/chrome/browser/infobars/infobar_utils.h ('k') | ios/chrome/browser/installation_notifier.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/infobars/infobar_utils.mm
diff --git a/ios/chrome/browser/infobars/infobar_utils.mm b/ios/chrome/browser/infobars/infobar_utils.mm
index f3e9a0b28618a96e1c62ba827ef564089a308024..37ad255a83cc4d155e27ffc7e36707c71666a0ad 100644
--- a/ios/chrome/browser/infobars/infobar_utils.mm
+++ b/ios/chrome/browser/infobars/infobar_utils.mm
@@ -4,17 +4,17 @@
#include "ios/chrome/browser/infobars/infobar_utils.h"
+#include <memory>
#include <utility>
#include "base/mac/scoped_nsobject.h"
-#include "base/memory/scoped_ptr.h"
#include "components/infobars/core/confirm_infobar_delegate.h"
#include "ios/chrome/browser/infobars/confirm_infobar_controller.h"
#include "ios/chrome/browser/infobars/infobar.h"
-scoped_ptr<infobars::InfoBar> CreateConfirmInfoBar(
- scoped_ptr<ConfirmInfoBarDelegate> delegate) {
- scoped_ptr<InfoBarIOS> infobar(new InfoBarIOS(std::move(delegate)));
+std::unique_ptr<infobars::InfoBar> CreateConfirmInfoBar(
+ std::unique_ptr<ConfirmInfoBarDelegate> delegate) {
+ std::unique_ptr<InfoBarIOS> infobar(new InfoBarIOS(std::move(delegate)));
base::scoped_nsobject<ConfirmInfoBarController> controller(
[[ConfirmInfoBarController alloc] initWithDelegate:infobar.get()]);
infobar->SetController(controller);
« no previous file with comments | « ios/chrome/browser/infobars/infobar_utils.h ('k') | ios/chrome/browser/installation_notifier.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698