refactor: use upstream AutofillDriverFactory diffs (#31676)

* refactor: use upstream AutofillDriverFactory diffs

Update our copy of AutofillDriver and AutofillDriverFactory to match chromium.
This commit is contained in:
Charles Kerr 2021-11-03 12:17:06 -05:00 committed by GitHub
parent 24b02d68a7
commit 190dd31dbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 62 additions and 45 deletions

View file

@ -15,16 +15,19 @@
namespace electron {
AutofillDriver::AutofillDriver(
content::RenderFrameHost* render_frame_host,
mojo::PendingAssociatedReceiver<mojom::ElectronAutofillDriver> request)
: render_frame_host_(render_frame_host),
receiver_(this, std::move(request)) {
AutofillDriver::AutofillDriver(content::RenderFrameHost* render_frame_host)
: render_frame_host_(render_frame_host) {
autofill_popup_ = std::make_unique<AutofillPopup>();
}
} // namespace electron
AutofillDriver::~AutofillDriver() = default;
void AutofillDriver::BindPendingReceiver(
mojo::PendingAssociatedReceiver<mojom::ElectronAutofillDriver>
pending_receiver) {
receiver_.Bind(std::move(pending_receiver));
}
void AutofillDriver::ShowAutofillPopup(
const gfx::RectF& bounds,
const std::vector<std::u16string>& values,