Move AutofillPopup from NativeWindow to WebContents (#12514)
This commit is contained in:
parent
3a45d541f3
commit
c75dd93b92
11 changed files with 123 additions and 126 deletions
|
@ -189,6 +189,9 @@ void CommonWebContentsDelegate::SetOwnerWindow(
|
|||
auto relay = base::MakeUnique<NativeWindowRelay>(owner_window_);
|
||||
auto relay_key = relay->key;
|
||||
if (owner_window) {
|
||||
#if defined(TOOLKIT_VIEWS)
|
||||
autofill_popup_.reset(new AutofillPopup());
|
||||
#endif
|
||||
web_contents->SetUserData(relay_key, std::move(relay));
|
||||
} else {
|
||||
web_contents->RemoveUserData(relay_key);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue