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

Unified Diff: chrome/browser/ui/android/infobars/save_password_infobar.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
Index: chrome/browser/ui/android/infobars/save_password_infobar.cc
diff --git a/chrome/browser/ui/android/infobars/save_password_infobar.cc b/chrome/browser/ui/android/infobars/save_password_infobar.cc
index cb6315da4b231ce674b0393cc6ae8967be6653cd..750392f230c76bbea11b8a06e0f51e8bd2190e4f 100644
--- a/chrome/browser/ui/android/infobars/save_password_infobar.cc
+++ b/chrome/browser/ui/android/infobars/save_password_infobar.cc
@@ -8,10 +8,11 @@
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
+#include "base/memory/ptr_util.h"
#include "jni/SavePasswordInfoBar_jni.h"
SavePasswordInfoBar::SavePasswordInfoBar(
- scoped_ptr<SavePasswordInfoBarDelegate> delegate)
+ std::unique_ptr<SavePasswordInfoBarDelegate> delegate)
: ConfirmInfoBar(std::move(delegate)) {}
SavePasswordInfoBar::~SavePasswordInfoBar() {
@@ -49,7 +50,7 @@ bool SavePasswordInfoBar::Register(JNIEnv* env) {
return RegisterNativesImpl(env);
}
-scoped_ptr<infobars::InfoBar> CreateSavePasswordInfoBar(
- scoped_ptr<SavePasswordInfoBarDelegate> delegate) {
- return make_scoped_ptr(new SavePasswordInfoBar(std::move(delegate)));
+std::unique_ptr<infobars::InfoBar> CreateSavePasswordInfoBar(
+ std::unique_ptr<SavePasswordInfoBarDelegate> delegate) {
+ return base::WrapUnique(new SavePasswordInfoBar(std::move(delegate)));
}

Powered by Google App Engine
This is Rietveld 408576698