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

Unified Diff: chrome/browser/ui/autofill/mock_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/mock_new_credit_card_bubble_controller.cc
diff --git a/chrome/browser/ui/autofill/mock_new_credit_card_bubble_controller.cc b/chrome/browser/ui/autofill/mock_new_credit_card_bubble_controller.cc
index e2dfa87e96b67a51082cecc107cfedc5ea0adeab..c36ec99a309b0156b84b59a41d9eb9acb5e55afa 100644
--- a/chrome/browser/ui/autofill/mock_new_credit_card_bubble_controller.cc
+++ b/chrome/browser/ui/autofill/mock_new_credit_card_bubble_controller.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/ui/autofill/mock_new_credit_card_bubble_controller.h"
+#include <utility>
+
#include "base/logging.h"
#include "components/autofill/core/browser/autofill_profile.h"
#include "components/autofill/core/browser/credit_card.h"
@@ -21,8 +23,8 @@ void MockNewCreditCardBubbleController::Show(
CHECK(new_card);
CHECK(billing_profile);
- new_card_ = new_card.Pass();
- billing_profile_ = billing_profile.Pass();
+ new_card_ = std::move(new_card);
+ billing_profile_ = std::move(billing_profile);
++bubbles_shown_;
}
« no previous file with comments | « chrome/browser/ui/autofill/chrome_autofill_client.cc ('k') | chrome/browser/ui/autofill/new_credit_card_bubble_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698