Skip to content

Commit

Permalink
Changes to HidDeviceFilter's constructor
Browse files Browse the repository at this point in the history
Chromium change:
https://chromium.googlesource.com/chromium/src/+/c655f4ee8c6a16058886450db522ceb00d285e6a

commit c655f4ee8c6a16058886450db522ceb00d285e6a
Author: François Beaufort <beaufort.francois@gmail.com>
Date:   Tue Mar 29 15:06:28 2022 +0000

    hid: Add exclusionFilters option to requestDevice

    This CL adds a exclusionFilters option in navigator.usb.requestDevice()
    so that developers can exclude from the browser picker some devices
    that are known to not work as expected.
    This feature is available behind the WebHIDExclusionFiltersOption blink
    runtime feature.

    Intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/DPAaLnuaOH4
    Spec: WICG/webhid#93
    Demo: https://hid-exclusion-filters.glitch.me/

    Bug: 1301934
  • Loading branch information
cdesouza-chromium committed Apr 27, 2022
1 parent 7082af1 commit 776c153
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion browser/brave_wallet/brave_wallet_tab_helper_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ std::u16string GetHIDTitle(content::WebContents* content, const GURL& url) {
content::WebContentsTester::For(content)->NavigateAndCommit(
url, ui::PAGE_TRANSITION_LINK);
std::vector<blink::mojom::HidDeviceFilterPtr> filters;
std::vector<blink::mojom::HidDeviceFilterPtr> exclusion_filters;
auto hid_chooser_controller = std::make_unique<HidChooserController>(
content->GetMainFrame(), std::move(filters), base::DoNothing());
content->GetMainFrame(), std::move(filters), std::move(exclusion_filters),
base::DoNothing());
return hid_chooser_controller->GetTitle();
}
} // namespace
Expand Down

0 comments on commit 776c153

Please sign in to comment.