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

Unified Diff: components/autofill/content/renderer/password_autofill_agent.cc

Issue 2869673002: Use OnceCallback on Mojo interfaces in //components/autofill (Closed)
Patch Set: rebase Created 3 years, 7 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: components/autofill/content/renderer/password_autofill_agent.cc
diff --git a/components/autofill/content/renderer/password_autofill_agent.cc b/components/autofill/content/renderer/password_autofill_agent.cc
index e73ef7c656ae558b3f756e921fac3fe9a79c704c..23cdb1a1b115b92ceaae3cbbb0068225139bb6f7 100644
--- a/components/autofill/content/renderer/password_autofill_agent.cc
+++ b/components/autofill/content/renderer/password_autofill_agent.cc
@@ -1546,7 +1546,7 @@ void PasswordAutofillAgent::AutofillUsernameAndPasswordDataReceived(
}
void PasswordAutofillAgent::FindFocusedPasswordForm(
- const FindFocusedPasswordFormCallback& callback) {
+ FindFocusedPasswordFormCallback callback) {
std::unique_ptr<PasswordForm> password_form;
blink::WebElement element =
@@ -1577,7 +1577,7 @@ void PasswordAutofillAgent::FindFocusedPasswordForm(
password_form->submission_event =
PasswordForm::SubmissionIndicatorEvent::MANUAL_SAVE;
- callback.Run(*password_form);
+ std::move(callback).Run(*password_form);
}
////////////////////////////////////////////////////////////////////////////////

Powered by Google App Engine
This is Rietveld 408576698