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:
parent
24b02d68a7
commit
190dd31dbc
5 changed files with 62 additions and 45 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue