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

Unified Diff: chrome/browser/ui/android/infobars/download_overwrite_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/download_overwrite_infobar.cc
diff --git a/chrome/browser/ui/android/infobars/download_overwrite_infobar.cc b/chrome/browser/ui/android/infobars/download_overwrite_infobar.cc
index 5dbfb220757141cfac189b04f32c7222d7521e6e..5548748374d3c4c94c7dcf0813be53a1cff0733b 100644
--- a/chrome/browser/ui/android/infobars/download_overwrite_infobar.cc
+++ b/chrome/browser/ui/android/infobars/download_overwrite_infobar.cc
@@ -11,22 +11,23 @@
#include "base/android/jni_string.h"
#include "base/android/jni_weak_ref.h"
#include "base/files/file_path.h"
+#include "base/memory/ptr_util.h"
#include "chrome/browser/android/download/download_overwrite_infobar_delegate.h"
#include "jni/DownloadOverwriteInfoBar_jni.h"
using chrome::android::DownloadOverwriteInfoBarDelegate;
// static
-scoped_ptr<infobars::InfoBar> DownloadOverwriteInfoBar::CreateInfoBar(
- scoped_ptr<DownloadOverwriteInfoBarDelegate> delegate) {
- return make_scoped_ptr(new DownloadOverwriteInfoBar(std::move(delegate)));
+std::unique_ptr<infobars::InfoBar> DownloadOverwriteInfoBar::CreateInfoBar(
+ std::unique_ptr<DownloadOverwriteInfoBarDelegate> delegate) {
+ return base::WrapUnique(new DownloadOverwriteInfoBar(std::move(delegate)));
}
DownloadOverwriteInfoBar::~DownloadOverwriteInfoBar() {
}
DownloadOverwriteInfoBar::DownloadOverwriteInfoBar(
- scoped_ptr<DownloadOverwriteInfoBarDelegate> delegate)
+ std::unique_ptr<DownloadOverwriteInfoBarDelegate> delegate)
: InfoBarAndroid(std::move(delegate)) {}
base::android::ScopedJavaLocalRef<jobject>

Powered by Google App Engine
This is Rietveld 408576698