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

Unified Diff: ios/chrome/browser/passwords/password_controller.mm

Issue 1586833002: Convert Pass()→std::move() for iOS build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert accidental //base change Created 4 years, 11 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: ios/chrome/browser/passwords/password_controller.mm
diff --git a/ios/chrome/browser/passwords/password_controller.mm b/ios/chrome/browser/passwords/password_controller.mm
index 9b7c5854ba477788ef4a313d3771e48524f94038..c4738b02f2e3bbb0928c134fb5917e0d603425ad 100644
--- a/ios/chrome/browser/passwords/password_controller.mm
+++ b/ios/chrome/browser/passwords/password_controller.mm
@@ -314,7 +314,8 @@ bool GetPageURLAndCheckTrustLevel(web::WebState* web_state, GURL* page_url) {
// InitPasswordFormFillData() that the preferred match (3rd parameter)
// should be one of the |matches|.
auto scoped_form = make_scoped_ptr(new autofill::PasswordForm(form));
- matches.insert(std::make_pair(form.username_value, scoped_form.Pass()));
+ matches.insert(
+ std::make_pair(form.username_value, std::move(scoped_form)));
autofill::InitPasswordFormFillData(form, matches, &form, false, false,
&formData);
[self fillPasswordForm:formData

Powered by Google App Engine
This is Rietveld 408576698