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

Unified Diff: chrome/browser/ui/android/autofill/credit_card_scanner_view_android.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/autofill/credit_card_scanner_view_android.cc
diff --git a/chrome/browser/ui/android/autofill/credit_card_scanner_view_android.cc b/chrome/browser/ui/android/autofill/credit_card_scanner_view_android.cc
index 9693488ee9cd130c2c870f8a20d7d66dafba1f84..7d9a0d0c383bd46faa466b5b28d5c524c75c125f 100644
--- a/chrome/browser/ui/android/autofill/credit_card_scanner_view_android.cc
+++ b/chrome/browser/ui/android/autofill/credit_card_scanner_view_android.cc
@@ -4,10 +4,12 @@
#include "chrome/browser/ui/android/autofill/credit_card_scanner_view_android.h"
+#include <memory>
+
#include "base/android/context_utils.h"
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
-#include "base/memory/scoped_ptr.h"
+#include "base/memory/ptr_util.h"
#include "chrome/browser/ui/android/view_android_helper.h"
#include "chrome/browser/ui/autofill/credit_card_scanner_view_delegate.h"
#include "content/public/browser/android/content_view_core.h"
@@ -27,10 +29,10 @@ bool CreditCardScannerView::CanShow() {
}
// static
-scoped_ptr<CreditCardScannerView> CreditCardScannerView::Create(
+std::unique_ptr<CreditCardScannerView> CreditCardScannerView::Create(
const base::WeakPtr<CreditCardScannerViewDelegate>& delegate,
content::WebContents* web_contents) {
- return make_scoped_ptr(
+ return base::WrapUnique(
new CreditCardScannerViewAndroid(delegate, web_contents));
}

Powered by Google App Engine
This is Rietveld 408576698