• Nate Chapin's avatar
    Make Serial a Supplement<NavigatorBase> · 632ef553
    Nate Chapin authored
    NavigatorBase is a newly-added base class for Navigator and
    WorkerNavigator. Making Serial a Supplement of NavigatorBase
    allows a single class to handle all of the work of exposing the
    navigator.serial getter for both windows and workers, and
    greatly reduces boilerplate.
    
    Bug: 1147612
    Change-Id: If8bb50bdb9729b106be20f0ee228233560f09511
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2537920
    Commit-Queue: Nate Chapin <japhet@chromium.org>
    Commit-Queue: Reilly Grant <reillyg@chromium.org>
    Auto-Submit: Nate Chapin <japhet@chromium.org>
    Reviewed-by: default avatarReilly Grant <reillyg@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#827501}
    632ef553
serial.cc 10.3 KB