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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.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/autofill_dialog_controller_impl.cc
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
index df81daeb70ab70ea63a870066642df1ab7b25f49..fcf97d5a099c75cd7e4aa604e9ba9dd4096a2a7c 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
@@ -7,6 +7,7 @@
#include <algorithm>
#include <map>
#include <string>
+#include <utility>
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -1430,9 +1431,8 @@ bool AutofillDialogControllerImpl::HandleKeyPressEventInInput(
void AutofillDialogControllerImpl::ShowNewCreditCardBubble(
scoped_ptr<CreditCard> new_card,
scoped_ptr<AutofillProfile> billing_profile) {
- NewCreditCardBubbleController::Show(web_contents(),
- new_card.Pass(),
- billing_profile.Pass());
+ NewCreditCardBubbleController::Show(web_contents(), std::move(new_card),
+ std::move(billing_profile));
}
void AutofillDialogControllerImpl::SubmitButtonDelayBegin() {
@@ -2303,7 +2303,8 @@ void AutofillDialogControllerImpl::MaybeShowCreditCardBubble() {
billing_profile.reset(new AutofillProfile(*profile));
}
- ShowNewCreditCardBubble(newly_saved_card_.Pass(), billing_profile.Pass());
+ ShowNewCreditCardBubble(std::move(newly_saved_card_),
+ std::move(billing_profile));
}
void AutofillDialogControllerImpl::OnSubmitButtonDelayEnd() {

Powered by Google App Engine
This is Rietveld 408576698