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

Unified Diff: chrome/browser/ui/autofill/new_credit_card_bubble_controller.cc

Issue 1550053002: Convert Pass()→std::move() in //chrome/browser/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/autofill/new_credit_card_bubble_controller.cc
diff --git a/chrome/browser/ui/autofill/new_credit_card_bubble_controller.cc b/chrome/browser/ui/autofill/new_credit_card_bubble_controller.cc
index c61ebbbbfc84e0e51728429b7c15c64186933518..e768ee1f9e53e3511c5b8624e5848b84676d17e8 100644
--- a/chrome/browser/ui/autofill/new_credit_card_bubble_controller.cc
+++ b/chrome/browser/ui/autofill/new_credit_card_bubble_controller.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/autofill/new_credit_card_bubble_controller.h"
#include <string>
+#include <utility>
#include "base/logging.h"
#include "base/strings/utf_string_conversions.h"
@@ -39,9 +40,8 @@ void NewCreditCardBubbleController::Show(
content::WebContents* web_contents,
scoped_ptr<CreditCard> new_card,
scoped_ptr<AutofillProfile> billing_profile) {
- (new NewCreditCardBubbleController(web_contents))->SetupAndShow(
- new_card.Pass(),
- billing_profile.Pass());
+ (new NewCreditCardBubbleController(web_contents))
+ ->SetupAndShow(std::move(new_card), std::move(billing_profile));
}
const base::string16& NewCreditCardBubbleController::TitleText() const {
@@ -92,8 +92,8 @@ void NewCreditCardBubbleController::SetupAndShow(
DCHECK(new_card);
DCHECK(billing_profile);
- new_card_ = new_card.Pass();
- billing_profile_ = billing_profile.Pass();
+ new_card_ = std::move(new_card);
+ billing_profile_ = std::move(billing_profile);
const base::string16 card_number =
new_card_->GetRawInfo(CREDIT_CARD_NUMBER);

Powered by Google App Engine
This is Rietveld 408576698