Skip to content

Commit 903a69a

Browse files
author
Maura Winstanley
committed
update interface in sample code
1 parent a8ed7cb commit 903a69a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

specs/Autofill.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ When the general autofill setting is disabled, no suggestions appear, and no new
2020
## Win32 C++
2121
```cpp
2222
void SettingsComponent::TogglePasswordAutofill() {
23-
wil::com_ptr<ICoreWebView2Settings2_2> settings;
23+
wil::com_ptr<ICoreWebView2Settings4> settings;
2424
webView->get_Settings(&settings);
2525
bool enabled;
2626
settings->get_IsPasswordAutofillEnabled(&enabled);
2727
settings->put_IsPasswordAutofillEnabled(!enabled);
2828
}
2929

3030
void SettingsComponent::ToggleGeneralAutofill() {
31-
wil::com_ptr<ICoreWebView2Settings2_2> settings;
31+
wil::com_ptr<ICoreWebView2Settings4> settings;
3232
webView->get_Settings(&settings);
3333
bool enabled;
3434
settings->get_IsGeneralAutofillEnabled(&enabled);

0 commit comments

Comments
 (0)