Commit 9bb098df authored by Xida Chen's avatar Xida Chen Committed by Commit Bot

Convert base::closure in chrome/browser/autofill

This CL converts base::Closure to base::RepeatingClosure.
This is a code health CL, should not cause any behavior
change.

With this CL, there will be no base::Callback,
or base::Closure or base::bind in autofill/

Bug: 1007635
Change-Id: I2d387ba822917dc080deeda93b2511d623b37beb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2272610
Auto-Submit: Xida Chen <xidachen@chromium.org>
Commit-Queue: Maxim Kolosovskiy <kolos@chromium.org>
Reviewed-by: default avatarMaxim Kolosovskiy <kolos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#784349}
parent 95607924
......@@ -152,11 +152,11 @@ class ContentAutofillDriverBrowserTest : public InProcessBrowserTest,
run_loop.Run();
}
void OnGetElementFormAndFieldData(const base::Closure& done_callback,
void OnGetElementFormAndFieldData(base::RepeatingClosure done_callback,
size_t expected_form_size,
const autofill::FormData& form_data,
const autofill::FormFieldData& form_field) {
done_callback.Run();
std::move(done_callback).Run();
if (expected_form_size) {
ASSERT_EQ(form_data.fields.size(), expected_form_size);
ASSERT_FALSE(form_field.label.empty());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment