Mojofication on //device/hid. Convert //extensions to use hid mojo interface. [chromium/src : master]

14 views
Skip to first unread message

Ke He (Gerrit)

unread,
Sep 4, 2017, 6:55:36 AM9/4/17
to chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek

Hi, Reilly, PTAL on this, thanks very much.

View Change

    To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-MessageType: comment
    Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
    Gerrit-Change-Number: 648949
    Gerrit-PatchSet: 3
    Gerrit-Owner: Ke He <ke...@intel.com>
    Gerrit-Reviewer: Ke He <ke...@intel.com>
    Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Adam Barth <aba...@chromium.org>
    Gerrit-CC: Commit Bot <commi...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
    Gerrit-Comment-Date: Mon, 04 Sep 2017 10:55:30 +0000
    Gerrit-HasComments: No
    Gerrit-HasLabels: No

    Ke He (Gerrit)

    unread,
    Sep 4, 2017, 7:00:46 AM9/4/17
    to chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek

    View Change

    1 comment:

    To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-MessageType: comment
    Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
    Gerrit-Change-Number: 648949
    Gerrit-PatchSet: 3
    Gerrit-Owner: Ke He <ke...@intel.com>
    Gerrit-Reviewer: Ke He <ke...@intel.com>
    Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Adam Barth <aba...@chromium.org>
    Gerrit-CC: Commit Bot <commi...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
    Gerrit-Comment-Date: Mon, 04 Sep 2017 11:00:41 +0000
    Gerrit-HasComments: Yes
    Gerrit-HasLabels: No

    Ke He (Gerrit)

    unread,
    Sep 4, 2017, 11:01:34 PM9/4/17
    to chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek

    Patch Set 3:

    (1 comment)

    View Change

    4 comments:

    To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-MessageType: comment
    Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
    Gerrit-Change-Number: 648949
    Gerrit-PatchSet: 3
    Gerrit-Owner: Ke He <ke...@intel.com>
    Gerrit-Reviewer: Ke He <ke...@intel.com>
    Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Adam Barth <aba...@chromium.org>
    Gerrit-CC: Commit Bot <commi...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
    Gerrit-Comment-Date: Tue, 05 Sep 2017 03:01:28 +0000
    Gerrit-HasComments: Yes
    Gerrit-HasLabels: No

    Reilly Grant (Gerrit)

    unread,
    Sep 5, 2017, 4:08:44 PM9/5/17
    to Ke He, chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek

    View Change

    20 comments:

    To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-MessageType: comment
    Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
    Gerrit-Change-Number: 648949
    Gerrit-PatchSet: 3
    Gerrit-Owner: Ke He <ke...@intel.com>
    Gerrit-Reviewer: Ke He <ke...@intel.com>
    Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Adam Barth <aba...@chromium.org>
    Gerrit-CC: Commit Bot <commi...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
    Gerrit-Comment-Date: Tue, 05 Sep 2017 20:08:41 +0000
    Gerrit-HasComments: Yes
    Gerrit-HasLabels: No

    Ke He (Gerrit)

    unread,
    Sep 6, 2017, 5:22:07 AM9/6/17
    to chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek

    Thanks very much:)

    View Change

    20 comments:

      • std::move(connection)

        Done

      • "Close |connection| on destruction because this class is owned by a mojo::StrongBinding and will be […]

        Done

      • std::move(callback) (Here and below whenever passing a move-only type to base::BindOnce. […]

        Done

      • auto io_buffer = base::MakeRefCounted<net::IOBufferWithSize>(buffer. […]

        Done

      • I would prefer calling this HidManagerImpl to avoid confusion between this and the generated HidMana […]

        Done

      • As this is a subclass of device::mojom::HidManager the type name can be shortened to "GetDevicesCall […]

        Done

      • Use base::BindOnce instead of base::Bind and std::move instead of base::Passed. (Here and below. […]

        The definition of HidService::GetDevicesCallback is a RepeatingCallback, I'll change it to OnceCallback in the next CL that handles //device/u2f, then I'll also change here too.

        So How about I leave it as a TODO and resolve it in next CL?

      • nullptr can be passed here to indicate an invalid device::mojom::HidObserverAssociatedPtrInfo.

        Done

      • Why declare a new vector here instead of just calling Run() with |devices| directly?

      • earlier

        Done

      • Convention is to refer to interfaces like HidObserver as a "client" so I would name this GetDevicesA […]

        Done

      • This DCHECK isn't really necessary because |device| is not optional in the Mojo interface.

      • Is this static_cast still necessary?

      • Done


      • const uint8_t* data =

        buffer.insert(buffer.end(), parameters_->data.begin(), parameters_->data.end()); […]

        Done

      • std::vector<uint8_t> buffer;
        buffer.push_back(static_cast<uint8_t>(parame

        Same here.

        Done

    To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-MessageType: comment
    Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
    Gerrit-Change-Number: 648949
    Gerrit-PatchSet: 4
    Gerrit-Owner: Ke He <ke...@intel.com>
    Gerrit-Reviewer: Ke He <ke...@intel.com>
    Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
    Gerrit-CC: Aaron Boodman <a...@chromium.org>
    Gerrit-CC: Adam Barth <aba...@chromium.org>
    Gerrit-CC: Commit Bot <commi...@chromium.org>
    Gerrit-CC: Darin Fisher <da...@chromium.org>
    Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
    Gerrit-Comment-Date: Wed, 06 Sep 2017 09:22:01 +0000
    Gerrit-HasComments: Yes
    Gerrit-HasLabels: No

    Ke He (Gerrit)

    unread,
    Sep 6, 2017, 5:39:40 AM9/6/17
    to chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek

    Patch Set 4:

    (20 comments)

    Thanks very much:)

    PTAL again. Thanks:)

    View Change

      To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: master
      Gerrit-MessageType: comment
      Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
      Gerrit-Change-Number: 648949
      Gerrit-PatchSet: 4
      Gerrit-Owner: Ke He <ke...@intel.com>
      Gerrit-Reviewer: Ke He <ke...@intel.com>
      Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
      Gerrit-CC: Aaron Boodman <a...@chromium.org>
      Gerrit-CC: Adam Barth <aba...@chromium.org>
      Gerrit-CC: Commit Bot <commi...@chromium.org>
      Gerrit-CC: Darin Fisher <da...@chromium.org>
      Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
      Gerrit-Comment-Date: Wed, 06 Sep 2017 09:39:33 +0000
      Gerrit-HasComments: No
      Gerrit-HasLabels: No

      Ke He (Gerrit)

      unread,
      Sep 6, 2017, 5:42:13 AM9/6/17
      to chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek

      By the way, will we move the //device/u2f into device service? if no, I'll start to mojofy it. Thanks!

      View Change

        To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: master
        Gerrit-MessageType: comment
        Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
        Gerrit-Change-Number: 648949
        Gerrit-PatchSet: 4
        Gerrit-Owner: Ke He <ke...@intel.com>
        Gerrit-Reviewer: Ke He <ke...@intel.com>
        Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
        Gerrit-CC: Aaron Boodman <a...@chromium.org>
        Gerrit-CC: Adam Barth <aba...@chromium.org>
        Gerrit-CC: Commit Bot <commi...@chromium.org>
        Gerrit-CC: Darin Fisher <da...@chromium.org>
        Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
        Gerrit-Comment-Date: Wed, 06 Sep 2017 09:42:11 +0000
        Gerrit-HasComments: No
        Gerrit-HasLabels: No

        Reilly Grant (Gerrit)

        unread,
        Sep 6, 2017, 11:45:57 AM9/6/17
        to Ke He, chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek

        Patch Set 4:

        By the way, will we move the //device/u2f into device service? if no, I'll start to mojofy it. Thanks!

        I'll check with kpaulhamus@ and piperc@ on what their plans for //device/u2f and the WebAuthn implementation are. The original architecture did not anticipate the device service but already includes a Mojo layer.

        View Change

        1 comment:

          • The definition of HidService::GetDevicesCallback is a RepeatingCallback, I'll change it to OnceCallb […]

            It may be cleaner to wrap these callbacks in AdaptCallbackForRepeating and then do a pass through to remove the wrapping when HidService is updated.

        To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: master
        Gerrit-MessageType: comment
        Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
        Gerrit-Change-Number: 648949
        Gerrit-PatchSet: 4
        Gerrit-Owner: Ke He <ke...@intel.com>
        Gerrit-Reviewer: Ke He <ke...@intel.com>
        Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
        Gerrit-CC: Aaron Boodman <a...@chromium.org>
        Gerrit-CC: Adam Barth <aba...@chromium.org>
        Gerrit-CC: Commit Bot <commi...@chromium.org>
        Gerrit-CC: Darin Fisher <da...@chromium.org>
        Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
        Gerrit-Comment-Date: Wed, 06 Sep 2017 15:45:54 +0000
        Gerrit-HasComments: Yes
        Gerrit-HasLabels: No

        Reilly Grant (Gerrit)

        unread,
        Sep 6, 2017, 4:35:17 PM9/6/17
        to Ke He, chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek

        Patch Set 4:

        (1 comment)

        Patch Set 4:

        By the way, will we move the //device/u2f into device service? if no, I'll start to mojofy it. Thanks!

        I'll check with kpaulhamus@ and piperc@ on what their plans for //device/u2f and the WebAuthn implementation are. The original architecture did not anticipate the device service but already includes a Mojo layer.

        I spoke to kpaulhamus@ and our plan for now is to not move //device/u2f into the device service so it should be updated to use the HID Mojo interface.

        View Change

          To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: chromium/src
          Gerrit-Branch: master
          Gerrit-MessageType: comment
          Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
          Gerrit-Change-Number: 648949
          Gerrit-PatchSet: 4
          Gerrit-Owner: Ke He <ke...@intel.com>
          Gerrit-Reviewer: Ke He <ke...@intel.com>
          Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
          Gerrit-CC: Aaron Boodman <a...@chromium.org>
          Gerrit-CC: Adam Barth <aba...@chromium.org>
          Gerrit-CC: Commit Bot <commi...@chromium.org>
          Gerrit-CC: Darin Fisher <da...@chromium.org>
          Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
          Gerrit-Comment-Date: Wed, 06 Sep 2017 20:35:12 +0000
          Gerrit-HasComments: No
          Gerrit-HasLabels: No

          Ke He (Gerrit)

          unread,
          Sep 6, 2017, 10:10:16 PM9/6/17
          to Reilly Grant, chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Darin Fisher, chromium...@chromium.org, John Abd-El-Malek, Commit Bot, Adam Barth, Aaron Boodman

          Ke He uploaded patch set #6 to this change.

          View Change

          Mojofication on //device/hid. Convert //extensions to use hid mojo interface.

          In this CL:
          1) Add the HidManager and HidConnection interfaces in hid.mojom, and
          implements those mojo interfaces in //device/hid.

          2) Convert the clients in //extensions to use hid mojo interfaces.

          3) Change the type of HidUsageAndPage::usage_page to uint16_t.

          4) Rewrite the hid_apitest base on the new added mojo interfaces.

          TODO:
          1) Move client library files into device/hid/public/cpp.
          2) Host HidService by DeviceService instead of DeviceClient.
          3) Mojofy //device/u2f Or just move it into DeviceService.

          BUG=728223

          Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
          ---
          M chrome/browser/extensions/api/device_permissions_manager_unittest.cc
          M content/public/app/mojo/content_browser_manifest.json
          M device/hid/BUILD.gn
          A device/hid/hid_connection_impl.cc
          A device/hid/hid_connection_impl.h
          A device/hid/hid_manager_impl.cc
          A device/hid/hid_manager_impl.h
          M device/hid/hid_service.h
          M device/hid/hid_usage_and_page.h
          M device/hid/public/interfaces/hid.mojom
          M device/hid/public/interfaces/hid_struct_traits.cc
          M device/hid/public/interfaces/hid_struct_traits.h
          M extensions/browser/BUILD.gn
          M extensions/browser/api/device_permissions_prompt.cc
          M extensions/browser/api/hid/hid_api.cc
          M extensions/browser/api/hid/hid_api.h
          M extensions/browser/api/hid/hid_apitest.cc
          M extensions/browser/api/hid/hid_connection_resource.cc
          M extensions/browser/api/hid/hid_connection_resource.h
          M extensions/browser/api/hid/hid_device_manager.cc
          M extensions/browser/api/hid/hid_device_manager.h
          M extensions/shell/browser/shell_device_client.cc
          M extensions/shell/browser/shell_device_client.h
          M services/device/BUILD.gn
          M services/device/device_service.cc
          M services/device/device_service.h
          M services/device/manifest.json
          27 files changed, 763 insertions(+), 468 deletions(-)

          To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: chromium/src
          Gerrit-Branch: master
          Gerrit-MessageType: newpatchset
          Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
          Gerrit-Change-Number: 648949
          Gerrit-PatchSet: 6

          Ke He (Gerrit)

          unread,
          Sep 7, 2017, 1:22:01 AM9/7/17
          to chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek

          Thanks! PTAL:)

          View Change

          1 comment:

            • It may be cleaner to wrap these callbacks in AdaptCallbackForRepeating and then do a pass through to […]

              Thanks. Change the GetDevices() and Connect() to use AdaptCallbackForRepeating.
              Done.

          To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: chromium/src
          Gerrit-Branch: master
          Gerrit-MessageType: comment
          Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
          Gerrit-Change-Number: 648949
          Gerrit-PatchSet: 7
          Gerrit-Owner: Ke He <ke...@intel.com>
          Gerrit-Reviewer: Ke He <ke...@intel.com>
          Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
          Gerrit-CC: Aaron Boodman <a...@chromium.org>
          Gerrit-CC: Adam Barth <aba...@chromium.org>
          Gerrit-CC: Commit Bot <commi...@chromium.org>
          Gerrit-CC: Darin Fisher <da...@chromium.org>
          Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
          Gerrit-Comment-Date: Thu, 07 Sep 2017 05:21:39 +0000
          Gerrit-HasComments: Yes
          Gerrit-HasLabels: No

          Ke He (Gerrit)

          unread,
          Sep 7, 2017, 2:03:24 AM9/7/17
          to chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek

          Patch Set 4:

          Patch Set 4:

          (1 comment)

          Patch Set 4:

          By the way, will we move the //device/u2f into device service? if no, I'll start to mojofy it. Thanks!

          I'll check with kpaulhamus@ and piperc@ on what their plans for //device/u2f and the WebAuthn implementation are. The original architecture did not anticipate the device service but already includes a Mojo layer.

          I spoke to kpaulhamus@ and our plan for now is to not move //device/u2f into the device service so it should be updated to use the HID Mojo interface.

          Hi Reilly,
          IIUC, the implementation of u2f is still ongoing. The //device/u2f is not used at all so far, right? I didn't find any clients of it.

          The problem is: //device/u2f needs to get a "Connector" to connect the device service. Usually the Connector is get from "content::ServiceManagerConnection", while we cannot introduce the deps to //content in //device/u2f folder, so the only way is to let the client pass a Connector to the //device/u2f.

          As you said their architecture already includes a mojo layer, so it should be able to pass the Connector to //device/u2f. right? I'll continue the work of "using HID mojo interfaces in u2f" by temporarily using the "content::ServiceManagerConnection", and will replace them by passing Connector when everything is ready.

          WDYT? Thanks very much!

          View Change

            To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

            Gerrit-Project: chromium/src
            Gerrit-Branch: master
            Gerrit-MessageType: comment
            Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
            Gerrit-Change-Number: 648949
            Gerrit-PatchSet: 7
            Gerrit-Owner: Ke He <ke...@intel.com>
            Gerrit-Reviewer: Ke He <ke...@intel.com>
            Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
            Gerrit-CC: Aaron Boodman <a...@chromium.org>
            Gerrit-CC: Adam Barth <aba...@chromium.org>
            Gerrit-CC: Commit Bot <commi...@chromium.org>
            Gerrit-CC: Darin Fisher <da...@chromium.org>
            Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
            Gerrit-Comment-Date: Thu, 07 Sep 2017 06:03:19 +0000
            Gerrit-HasComments: No
            Gerrit-HasLabels: No

            Reilly Grant (Gerrit)

            unread,
            Sep 7, 2017, 12:01:57 PM9/7/17
            to Ke He, chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek

            Patch Set 7:

            Patch Set 4:

            Patch Set 4:

            (1 comment)

            Patch Set 4:

            By the way, will we move the //device/u2f into device service? if no, I'll start to mojofy it. Thanks!

            I'll check with kpaulhamus@ and piperc@ on what their plans for //device/u2f and the WebAuthn implementation are. The original architecture did not anticipate the device service but already includes a Mojo layer.

            I spoke to kpaulhamus@ and our plan for now is to not move //device/u2f into the device service so it should be updated to use the HID Mojo interface.

            Hi Reilly,
            IIUC, the implementation of u2f is still ongoing. The //device/u2f is not used at all so far, right? I didn't find any clients of it.

            The problem is: //device/u2f needs to get a "Connector" to connect the device service. Usually the Connector is get from "content::ServiceManagerConnection", while we cannot introduce the deps to //content in //device/u2f folder, so the only way is to let the client pass a Connector to the //device/u2f.

            As you said their architecture already includes a mojo layer, so it should be able to pass the Connector to //device/u2f. right? I'll continue the work of "using HID mojo interfaces in u2f" by temporarily using the "content::ServiceManagerConnection", and will replace them by passing Connector when everything is ready.

            WDYT? Thanks very much!

            Yes, adding a service_manager::Connector* parameter to the U2fRequest constructor seems reasonable.

            View Change

              To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

              Gerrit-Project: chromium/src
              Gerrit-Branch: master
              Gerrit-MessageType: comment
              Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
              Gerrit-Change-Number: 648949
              Gerrit-PatchSet: 7
              Gerrit-Owner: Ke He <ke...@intel.com>
              Gerrit-Reviewer: Ke He <ke...@intel.com>
              Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
              Gerrit-CC: Aaron Boodman <a...@chromium.org>
              Gerrit-CC: Adam Barth <aba...@chromium.org>
              Gerrit-CC: Commit Bot <commi...@chromium.org>
              Gerrit-CC: Darin Fisher <da...@chromium.org>
              Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
              Gerrit-Comment-Date: Thu, 07 Sep 2017 16:01:53 +0000
              Gerrit-HasComments: No
              Gerrit-HasLabels: No

              Reilly Grant (Gerrit)

              unread,
              Sep 7, 2017, 2:57:19 PM9/7/17
              to Ke He, chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek

              View Change

              17 comments:

              To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

              Gerrit-Project: chromium/src
              Gerrit-Branch: master
              Gerrit-MessageType: comment
              Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
              Gerrit-Change-Number: 648949
              Gerrit-PatchSet: 7
              Gerrit-Owner: Ke He <ke...@intel.com>
              Gerrit-Reviewer: Ke He <ke...@intel.com>
              Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
              Gerrit-CC: Aaron Boodman <a...@chromium.org>
              Gerrit-CC: Adam Barth <aba...@chromium.org>
              Gerrit-CC: Commit Bot <commi...@chromium.org>
              Gerrit-CC: Darin Fisher <da...@chromium.org>
              Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
              Gerrit-Comment-Date: Thu, 07 Sep 2017 18:57:12 +0000
              Gerrit-HasComments: Yes
              Gerrit-HasLabels: No

              Ke He (Gerrit)

              unread,
              Sep 8, 2017, 3:30:22 AM9/8/17
              to chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek

              Thanks! CL updated.

              View Change

              17 comments:

                • Same here in the .cc file.

                • Done

                • nit: no space required here, |connector| is defined specifically for this line.

                • Done

                • auto if that allows this to fit on one line

                • nit: explicit keyword needed when there is a single argument to a constructor.

                • I don't believe this static_cast is necessary.

                • Done

                •     if (memcmp(buffer.data() + 1, kExpected, sizeof(kExpected) - 1) != 0) {
                  std::move(callback).Run(false);

                • Why not use memcmp as before?

                • If you make expected_report_id a uint8_t then this static_cast is unnecessary.

                • Done

                •     int expected_report_id = device_->has_report_id() ? 1 : 0;


                • if (report_id != expected_report_id) {
                  std::move(callback).Run(false);
                  return;
                  }

                •     if (memcmp(buffer.data() + 1, kExpected, sizeof(kExpected) - 1) != 0) {
                  std::move(callback).Run(false);
                  return;
                  }

                  std::move(callback).Run(true);
                  }

                • Same comments here as in Write().

                • Done

                • No need to save the return value of this call.

                •   // connection is successful.
                  device::mojom::HidManagerRequest request = mojo::MakeRequest(&hid_manager_);
                  device::mojom::HidManagerClientA

                • |hid_manager_| is initialized and safe to use whether or not the connection is successful.

                • Thanks! Done.

              To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

              Gerrit-Project: chromium/src
              Gerrit-Branch: master
              Gerrit-MessageType: comment
              Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
              Gerrit-Change-Number: 648949
              Gerrit-PatchSet: 8
              Gerrit-Owner: Ke He <ke...@intel.com>
              Gerrit-Reviewer: Ke He <ke...@intel.com>
              Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
              Gerrit-CC: Aaron Boodman <a...@chromium.org>
              Gerrit-CC: Adam Barth <aba...@chromium.org>
              Gerrit-CC: Commit Bot <commi...@chromium.org>
              Gerrit-CC: Darin Fisher <da...@chromium.org>
              Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
              Gerrit-Comment-Date: Fri, 08 Sep 2017 07:30:17 +0000
              Gerrit-HasComments: Yes
              Gerrit-HasLabels: No

              Reilly Grant (Gerrit)

              unread,
              Sep 8, 2017, 1:48:32 PM9/8/17
              to Ke He, chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher, John Abd-El-Malek

              Patch set 8:Code-Review +1

              View Change

              3 comments:

              To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

              Gerrit-Project: chromium/src
              Gerrit-Branch: master
              Gerrit-MessageType: comment
              Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
              Gerrit-Change-Number: 648949
              Gerrit-PatchSet: 8
              Gerrit-Owner: Ke He <ke...@intel.com>
              Gerrit-Reviewer: Ke He <ke...@intel.com>
              Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
              Gerrit-CC: Aaron Boodman <a...@chromium.org>
              Gerrit-CC: Adam Barth <aba...@chromium.org>
              Gerrit-CC: Commit Bot <commi...@chromium.org>
              Gerrit-CC: Darin Fisher <da...@chromium.org>
              Gerrit-CC: John Abd-El-Malek <j...@chromium.org>
              Gerrit-Comment-Date: Fri, 08 Sep 2017 17:48:26 +0000
              Gerrit-HasComments: Yes
              Gerrit-HasLabels: Yes

              Ke He (Gerrit)

              unread,
              Sep 8, 2017, 8:16:37 PM9/8/17
              to chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, John Abd-El-Malek, Tom Sepez, Reilly Grant, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher

              Hi, John, PTAL on //content/, Tom, PTAL on the mojo security.
              Thanks all!

              View Change

                To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

                Gerrit-Project: chromium/src
                Gerrit-Branch: master
                Gerrit-MessageType: comment
                Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
                Gerrit-Change-Number: 648949
                Gerrit-PatchSet: 8
                Gerrit-Owner: Ke He <ke...@intel.com>
                Gerrit-Reviewer: John Abd-El-Malek <j...@chromium.org>
                Gerrit-Reviewer: Ke He <ke...@intel.com>
                Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
                Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
                Gerrit-CC: Aaron Boodman <a...@chromium.org>
                Gerrit-CC: Adam Barth <aba...@chromium.org>
                Gerrit-CC: Commit Bot <commi...@chromium.org>
                Gerrit-CC: Darin Fisher <da...@chromium.org>
                Gerrit-Comment-Date: Sat, 09 Sep 2017 00:16:05 +0000
                Gerrit-HasComments: No
                Gerrit-HasLabels: No

                Ke He (Gerrit)

                unread,
                Sep 8, 2017, 8:16:37 PM9/8/17
                to Tom Sepez, John Abd-El-Malek, chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant

                Ke He would like Tom Sepez and John Abd-El-Malek to review this change.

                View Change

                27 files changed, 737 insertions(+), 473 deletions(-)


                To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

                Gerrit-Project: chromium/src
                Gerrit-Branch: master
                Gerrit-MessageType: newchange

                Ke He (Gerrit)

                unread,
                Sep 8, 2017, 8:37:15 PM9/8/17
                to chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, John Abd-El-Malek, Tom Sepez, Reilly Grant, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher

                View Change

                3 comments:

                To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

                Gerrit-Project: chromium/src
                Gerrit-Branch: master
                Gerrit-MessageType: comment
                Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
                Gerrit-Change-Number: 648949
                Gerrit-PatchSet: 9
                Gerrit-Owner: Ke He <ke...@intel.com>
                Gerrit-Reviewer: John Abd-El-Malek <j...@chromium.org>
                Gerrit-Reviewer: Ke He <ke...@intel.com>
                Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
                Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
                Gerrit-CC: Aaron Boodman <a...@chromium.org>
                Gerrit-CC: Adam Barth <aba...@chromium.org>
                Gerrit-CC: Commit Bot <commi...@chromium.org>
                Gerrit-CC: Darin Fisher <da...@chromium.org>
                Gerrit-Comment-Date: Sat, 09 Sep 2017 00:37:00 +0000
                Gerrit-HasComments: Yes
                Gerrit-HasLabels: No

                Tom Sepez (Gerrit)

                unread,
                Sep 11, 2017, 6:51:26 PM9/11/17
                to Ke He, chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Colin Blundell, John Abd-El-Malek, Reilly Grant, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher

                View Change

                1 comment:

                To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

                Gerrit-Project: chromium/src
                Gerrit-Branch: master
                Gerrit-MessageType: comment
                Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
                Gerrit-Change-Number: 648949
                Gerrit-PatchSet: 9
                Gerrit-Owner: Ke He <ke...@intel.com>
                Gerrit-Reviewer: John Abd-El-Malek <j...@chromium.org>
                Gerrit-Reviewer: Ke He <ke...@intel.com>
                Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
                Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
                Gerrit-CC: Aaron Boodman <a...@chromium.org>
                Gerrit-CC: Adam Barth <aba...@chromium.org>
                Gerrit-CC: Colin Blundell <blun...@chromium.org>
                Gerrit-CC: Commit Bot <commi...@chromium.org>
                Gerrit-CC: Darin Fisher <da...@chromium.org>
                Gerrit-Comment-Date: Mon, 11 Sep 2017 22:51:23 +0000
                Gerrit-HasComments: Yes
                Gerrit-HasLabels: No

                Reilly Grant (Gerrit)

                unread,
                Sep 11, 2017, 7:25:56 PM9/11/17
                to Ke He, chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, Tom Sepez, Colin Blundell, John Abd-El-Malek, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher

                View Change

                1 comment:

                  • Is this returned packed by the device in this manner, or are we shuffling bytes around to do this ou […]

                    If the device sends one the report ID is packed by like this on the wire. For consistency between platforms (some of which pack it in themselves) the C++ interface always includes it in the buffer for consistency and to reduce the number of places where we need to expand or shrink the buffer in order to add or remove it.

                    The chrome.hid extension API always handles it as a separate parameter since buffers needed to be copied on that boundary anyways. We could do either here since Mojo represents a similar boundary.

                To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

                Gerrit-Project: chromium/src
                Gerrit-Branch: master
                Gerrit-MessageType: comment
                Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
                Gerrit-Change-Number: 648949
                Gerrit-PatchSet: 9
                Gerrit-Owner: Ke He <ke...@intel.com>
                Gerrit-Reviewer: John Abd-El-Malek <j...@chromium.org>
                Gerrit-Reviewer: Ke He <ke...@intel.com>
                Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
                Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
                Gerrit-CC: Aaron Boodman <a...@chromium.org>
                Gerrit-CC: Adam Barth <aba...@chromium.org>
                Gerrit-CC: Colin Blundell <blun...@chromium.org>
                Gerrit-CC: Commit Bot <commi...@chromium.org>
                Gerrit-CC: Darin Fisher <da...@chromium.org>
                Gerrit-Comment-Date: Mon, 11 Sep 2017 23:25:52 +0000
                Gerrit-HasComments: Yes
                Gerrit-HasLabels: No

                John Abd-El-Malek (Gerrit)

                unread,
                Sep 11, 2017, 9:11:42 PM9/11/17
                to Ke He, chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, Tom Sepez, Colin Blundell, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher

                Patch Set 8:

                Hi, John, PTAL on //content/, Tom, PTAL on the mojo security.
                Thanks all!

                You'll need a security reviewer for the manifest change in content.

                View Change

                  To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

                  Gerrit-Project: chromium/src
                  Gerrit-Branch: master
                  Gerrit-MessageType: comment
                  Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
                  Gerrit-Change-Number: 648949
                  Gerrit-PatchSet: 9
                  Gerrit-Owner: Ke He <ke...@intel.com>
                  Gerrit-Reviewer: John Abd-El-Malek <j...@chromium.org>
                  Gerrit-Reviewer: Ke He <ke...@intel.com>
                  Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
                  Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
                  Gerrit-CC: Aaron Boodman <a...@chromium.org>
                  Gerrit-CC: Adam Barth <aba...@chromium.org>
                  Gerrit-CC: Colin Blundell <blun...@chromium.org>
                  Gerrit-CC: Commit Bot <commi...@chromium.org>
                  Gerrit-CC: Darin Fisher <da...@chromium.org>
                  Gerrit-Comment-Date: Tue, 12 Sep 2017 01:11:37 +0000
                  Gerrit-HasComments: No
                  Gerrit-HasLabels: No

                  Ke He (Gerrit)

                  unread,
                  Sep 11, 2017, 10:40:50 PM9/11/17
                  to chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, John Abd-El-Malek, Reilly Grant, Tom Sepez, Colin Blundell, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher

                  Patch Set 9:

                  Patch Set 8:

                  Hi, John, PTAL on //content/, Tom, PTAL on the mojo security.
                  Thanks all!

                  You'll need a security reviewer for the manifest change in content.

                  John, Thanks! Tom, PTAL on the manifest changes in content too, thanks!

                  View Change

                    To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

                    Gerrit-Project: chromium/src
                    Gerrit-Branch: master
                    Gerrit-MessageType: comment
                    Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
                    Gerrit-Change-Number: 648949
                    Gerrit-PatchSet: 9
                    Gerrit-Owner: Ke He <ke...@intel.com>
                    Gerrit-Reviewer: John Abd-El-Malek <j...@chromium.org>
                    Gerrit-Reviewer: Ke He <ke...@intel.com>
                    Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
                    Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
                    Gerrit-CC: Aaron Boodman <a...@chromium.org>
                    Gerrit-CC: Adam Barth <aba...@chromium.org>
                    Gerrit-CC: Colin Blundell <blun...@chromium.org>
                    Gerrit-CC: Commit Bot <commi...@chromium.org>
                    Gerrit-CC: Darin Fisher <da...@chromium.org>
                    Gerrit-Comment-Date: Tue, 12 Sep 2017 02:40:44 +0000
                    Gerrit-HasComments: No
                    Gerrit-HasLabels: No

                    Ke He (Gerrit)

                    unread,
                    Sep 12, 2017, 2:48:10 AM9/12/17
                    to chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, John Abd-El-Malek, Reilly Grant, Tom Sepez, Colin Blundell, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher

                    Patch Set 9:

                    (1 comment)

                    Hi, Tom and Reilly, Thanks!

                    To separate the report_id as a parameter in mojo boundary or in extension boundary, I feel that both way are ok.

                    I think it might be better to keep the old interface so this CL can mainly focus on the mojofication. Even if we decide to go with the former way(if necessary), we can still do it in another CL.

                    WDYT? Thanks.

                    View Change

                      To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

                      Gerrit-Project: chromium/src
                      Gerrit-Branch: master
                      Gerrit-MessageType: comment
                      Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
                      Gerrit-Change-Number: 648949
                      Gerrit-PatchSet: 9
                      Gerrit-Owner: Ke He <ke...@intel.com>
                      Gerrit-Reviewer: John Abd-El-Malek <j...@chromium.org>
                      Gerrit-Reviewer: Ke He <ke...@intel.com>
                      Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
                      Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
                      Gerrit-CC: Aaron Boodman <a...@chromium.org>
                      Gerrit-CC: Adam Barth <aba...@chromium.org>
                      Gerrit-CC: Colin Blundell <blun...@chromium.org>
                      Gerrit-CC: Commit Bot <commi...@chromium.org>
                      Gerrit-CC: Darin Fisher <da...@chromium.org>
                      Gerrit-Comment-Date: Tue, 12 Sep 2017 06:48:05 +0000
                      Gerrit-HasComments: No
                      Gerrit-HasLabels: No

                      Reilly Grant (Gerrit)

                      unread,
                      Sep 12, 2017, 3:00:47 AM9/12/17
                      to Ke He, chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, John Abd-El-Malek, Tom Sepez, Colin Blundell, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher

                      Patch Set 9:

                      Patch Set 9:

                      (1 comment)

                      Hi, Tom and Reilly, Thanks!

                      To separate the report_id as a parameter in mojo boundary or in extension boundary, I feel that both way are ok.

                      I think it might be better to keep the old interface so this CL can mainly focus on the mojofication. Even if we decide to go with the former way(if necessary), we can still do it in another CL.

                      WDYT? Thanks.

                      I'd rather keep this as-is for now and evaluate afterwards whether changing the interface would simplify any implementation details. I went back and forth on this a few years ago and settled on the current interface as the best option.

                      View Change

                        To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

                        Gerrit-Project: chromium/src
                        Gerrit-Branch: master
                        Gerrit-MessageType: comment
                        Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
                        Gerrit-Change-Number: 648949
                        Gerrit-PatchSet: 9
                        Gerrit-Owner: Ke He <ke...@intel.com>
                        Gerrit-Reviewer: John Abd-El-Malek <j...@chromium.org>
                        Gerrit-Reviewer: Ke He <ke...@intel.com>
                        Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
                        Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
                        Gerrit-CC: Aaron Boodman <a...@chromium.org>
                        Gerrit-CC: Adam Barth <aba...@chromium.org>
                        Gerrit-CC: Colin Blundell <blun...@chromium.org>
                        Gerrit-CC: Commit Bot <commi...@chromium.org>
                        Gerrit-CC: Darin Fisher <da...@chromium.org>
                        Gerrit-Comment-Date: Tue, 12 Sep 2017 07:00:43 +0000
                        Gerrit-HasComments: No
                        Gerrit-HasLabels: No

                        Ke He (Gerrit)

                        unread,
                        Sep 13, 2017, 6:37:52 AM9/13/17
                        to chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, John Abd-El-Malek, Tom Sepez, Colin Blundell, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher

                        Patch Set 9:

                        Patch Set 9:

                        Patch Set 9:

                        (1 comment)

                        Hi, Tom and Reilly, Thanks!

                        To separate the report_id as a parameter in mojo boundary or in extension boundary, I feel that both way are ok.

                        I think it might be better to keep the old interface so this CL can mainly focus on the mojofication. Even if we decide to go with the former way(if necessary), we can still do it in another CL.

                        WDYT? Thanks.

                        I'd rather keep this as-is for now and evaluate afterwards whether changing the interface would simplify any implementation details. I went back and forth on this a few years ago and settled on the current interface as the best option.

                        Hi, Tom, friendly ping:)

                        View Change

                          To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

                          Gerrit-Project: chromium/src
                          Gerrit-Branch: master
                          Gerrit-MessageType: comment
                          Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
                          Gerrit-Change-Number: 648949
                          Gerrit-PatchSet: 9
                          Gerrit-Owner: Ke He <ke...@intel.com>
                          Gerrit-Reviewer: John Abd-El-Malek <j...@chromium.org>
                          Gerrit-Reviewer: Ke He <ke...@intel.com>
                          Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
                          Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
                          Gerrit-CC: Aaron Boodman <a...@chromium.org>
                          Gerrit-CC: Adam Barth <aba...@chromium.org>
                          Gerrit-CC: Colin Blundell <blun...@chromium.org>
                          Gerrit-CC: Commit Bot <commi...@chromium.org>
                          Gerrit-CC: Darin Fisher <da...@chromium.org>
                          Gerrit-Comment-Date: Wed, 13 Sep 2017 10:37:46 +0000
                          Gerrit-HasComments: No
                          Gerrit-HasLabels: No

                          Tom Sepez (Gerrit)

                          unread,
                          Sep 13, 2017, 12:18:45 PM9/13/17
                          to Ke He, chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, John Abd-El-Malek, Colin Blundell, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher

                          View Change

                          1 comment:

                            • If the device sends one the report ID is packed by like this on the wire. […]

                              Ok, if it's not too much trouble, let's split it out for clarity rather than commenting about it. Thanks.

                          To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

                          Gerrit-Project: chromium/src
                          Gerrit-Branch: master
                          Gerrit-MessageType: comment
                          Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
                          Gerrit-Change-Number: 648949
                          Gerrit-PatchSet: 9
                          Gerrit-Owner: Ke He <ke...@intel.com>
                          Gerrit-Reviewer: John Abd-El-Malek <j...@chromium.org>
                          Gerrit-Reviewer: Ke He <ke...@intel.com>
                          Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
                          Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
                          Gerrit-CC: Aaron Boodman <a...@chromium.org>
                          Gerrit-CC: Adam Barth <aba...@chromium.org>
                          Gerrit-CC: Colin Blundell <blun...@chromium.org>
                          Gerrit-CC: Commit Bot <commi...@chromium.org>
                          Gerrit-CC: Darin Fisher <da...@chromium.org>
                          Gerrit-Comment-Date: Wed, 13 Sep 2017 16:18:41 +0000
                          Gerrit-HasComments: Yes
                          Gerrit-HasLabels: No

                          Ke He (Gerrit)

                          unread,
                          Sep 13, 2017, 9:55:40 PM9/13/17
                          to chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Tom Sepez, Reilly Grant, John Abd-El-Malek, Colin Blundell, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher

                          Patch Set 9:

                          Patch Set 9:

                          Patch Set 9:

                          (1 comment)

                          Hi, Tom and Reilly, Thanks!

                          To separate the report_id as a parameter in mojo boundary or in extension boundary, I feel that both way are ok.

                          I think it might be better to keep the old interface so this CL can mainly focus on the mojofication. Even if we decide to go with the former way(if necessary), we can still do it in another CL.

                          WDYT? Thanks.

                          I'd rather keep this as-is for now and evaluate afterwards whether changing the interface would simplify any implementation details. I went back and forth on this a few years ago and settled on the current interface as the best option.

                          Hi, Tom, see above the discussions, we think maybe it is better to evaluate later. Do you think it's ok? Thanks.

                          View Change

                            To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

                            Gerrit-Project: chromium/src
                            Gerrit-Branch: master
                            Gerrit-MessageType: comment
                            Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
                            Gerrit-Change-Number: 648949
                            Gerrit-PatchSet: 9
                            Gerrit-Owner: Ke He <ke...@intel.com>
                            Gerrit-Reviewer: John Abd-El-Malek <j...@chromium.org>
                            Gerrit-Reviewer: Ke He <ke...@intel.com>
                            Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
                            Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
                            Gerrit-CC: Aaron Boodman <a...@chromium.org>
                            Gerrit-CC: Adam Barth <aba...@chromium.org>
                            Gerrit-CC: Colin Blundell <blun...@chromium.org>
                            Gerrit-CC: Commit Bot <commi...@chromium.org>
                            Gerrit-CC: Darin Fisher <da...@chromium.org>
                            Gerrit-Comment-Date: Thu, 14 Sep 2017 01:55:34 +0000
                            Gerrit-HasComments: No
                            Gerrit-HasLabels: No

                            Reilly Grant (Gerrit)

                            unread,
                            Sep 13, 2017, 10:36:12 PM9/13/17
                            to Ke He, chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, Tom Sepez, John Abd-El-Malek, Colin Blundell, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher

                            Patch Set 9:

                            Patch Set 9:

                            Patch Set 9:

                            Patch Set 9:

                            (1 comment)

                            Hi, Tom and Reilly, Thanks!

                            To separate the report_id as a parameter in mojo boundary or in extension boundary, I feel that both way are ok.

                            I think it might be better to keep the old interface so this CL can mainly focus on the mojofication. Even if we decide to go with the former way(if necessary), we can still do it in another CL.

                            WDYT? Thanks.

                            I'd rather keep this as-is for now and evaluate afterwards whether changing the interface would simplify any implementation details. I went back and forth on this a few years ago and settled on the current interface as the best option.

                            Hi, Tom, see above the discussions, we think maybe it is better to evaluate later. Do you think it's ok? Thanks.

                            Given the existing copies between std::vector<uint8_t> and net::IOBuffer making this change in this patch should not be difficult. Please give it a try.

                            View Change

                              To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

                              Gerrit-Project: chromium/src
                              Gerrit-Branch: master
                              Gerrit-MessageType: comment
                              Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
                              Gerrit-Change-Number: 648949
                              Gerrit-PatchSet: 9
                              Gerrit-Owner: Ke He <ke...@intel.com>
                              Gerrit-Reviewer: John Abd-El-Malek <j...@chromium.org>
                              Gerrit-Reviewer: Ke He <ke...@intel.com>
                              Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
                              Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
                              Gerrit-CC: Aaron Boodman <a...@chromium.org>
                              Gerrit-CC: Adam Barth <aba...@chromium.org>
                              Gerrit-CC: Colin Blundell <blun...@chromium.org>
                              Gerrit-CC: Commit Bot <commi...@chromium.org>
                              Gerrit-CC: Darin Fisher <da...@chromium.org>
                              Gerrit-Comment-Date: Thu, 14 Sep 2017 02:36:04 +0000
                              Gerrit-HasComments: No
                              Gerrit-HasLabels: No

                              Ke He (Gerrit)

                              unread,
                              Sep 14, 2017, 1:39:08 AM9/14/17
                              to chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, Tom Sepez, John Abd-El-Malek, Colin Blundell, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher

                              Hi, Reilly and Tom, I split out the report_id in mojom interface. PTAL. Thanks!

                              View Change

                                To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

                                Gerrit-Project: chromium/src
                                Gerrit-Branch: master
                                Gerrit-MessageType: comment
                                Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
                                Gerrit-Change-Number: 648949
                                Gerrit-PatchSet: 10
                                Gerrit-Owner: Ke He <ke...@intel.com>
                                Gerrit-Reviewer: John Abd-El-Malek <j...@chromium.org>
                                Gerrit-Reviewer: Ke He <ke...@intel.com>
                                Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
                                Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
                                Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                Gerrit-CC: Adam Barth <aba...@chromium.org>
                                Gerrit-CC: Colin Blundell <blun...@chromium.org>
                                Gerrit-CC: Commit Bot <commi...@chromium.org>
                                Gerrit-CC: Darin Fisher <da...@chromium.org>
                                Gerrit-Comment-Date: Thu, 14 Sep 2017 05:39:02 +0000
                                Gerrit-HasComments: No
                                Gerrit-HasLabels: No

                                Ke He (Gerrit)

                                unread,
                                Sep 14, 2017, 2:37:21 AM9/14/17
                                to Tom Sepez, Reilly Grant, John Abd-El-Malek, chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Darin Fisher, Colin Blundell, chromium...@chromium.org, Commit Bot, Adam Barth, Aaron Boodman

                                Ke He uploaded patch set #16 to this change.

                                View Change

                                Mojofication on //device/hid.

                                In this CL:
                                1) Add the HidManager and HidConnection interfaces in hid.mojom, and
                                implements those mojo interfaces in //device/hid.

                                2) Convert the clients in //extensions to use hid mojo interfaces.

                                3) Change the type of HidUsageAndPage::usage_page to uint16_t.

                                4) Rewrite the hid_apitest base on the new added mojo interfaces.

                                TODO:
                                1) Move client library files into device/hid/public/cpp.
                                2) Host HidService by DeviceService instead of DeviceClient.
                                3) Mojofy //device/u2f Or just move it into DeviceService.

                                BUG=728223
                                27 files changed, 734 insertions(+), 471 deletions(-)

                                To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

                                Gerrit-Project: chromium/src
                                Gerrit-Branch: master
                                Gerrit-MessageType: newpatchset
                                Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
                                Gerrit-Change-Number: 648949
                                Gerrit-PatchSet: 16
                                Gerrit-Owner: Ke He <ke...@intel.com>
                                Gerrit-Reviewer: John Abd-El-Malek <j...@chromium.org>
                                Gerrit-Reviewer: Ke He <ke...@intel.com>
                                Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
                                Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
                                Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                Gerrit-CC: Adam Barth <aba...@chromium.org>
                                Gerrit-CC: Colin Blundell <blun...@chromium.org>

                                Ke He (Gerrit)

                                unread,
                                Sep 14, 2017, 2:54:37 AM9/14/17
                                to chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, Tom Sepez, John Abd-El-Malek, Colin Blundell, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher

                                Hi, Sorry uploaded many useless patchsets, the "git cl upload" complains "Error after CL description prompt ...". In PatchSet 10 I split the report_id out from buffer in mojom interface.

                                Finally I failed to submit another CL which is for converting //device/u2f because of above error. I'll submit it after this CL gets landed.

                                Thanks!

                                View Change

                                  To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

                                  Gerrit-Project: chromium/src
                                  Gerrit-Branch: master
                                  Gerrit-MessageType: comment
                                  Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
                                  Gerrit-Change-Number: 648949
                                  Gerrit-PatchSet: 17
                                  Gerrit-Owner: Ke He <ke...@intel.com>
                                  Gerrit-Reviewer: John Abd-El-Malek <j...@chromium.org>
                                  Gerrit-Reviewer: Ke He <ke...@intel.com>
                                  Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
                                  Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
                                  Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                  Gerrit-CC: Adam Barth <aba...@chromium.org>
                                  Gerrit-CC: Colin Blundell <blun...@chromium.org>
                                  Gerrit-CC: Commit Bot <commi...@chromium.org>
                                  Gerrit-CC: Darin Fisher <da...@chromium.org>
                                  Gerrit-Comment-Date: Thu, 14 Sep 2017 06:54:33 +0000
                                  Gerrit-HasComments: No
                                  Gerrit-HasLabels: No

                                  Tom Sepez (Gerrit)

                                  unread,
                                  Sep 14, 2017, 12:41:19 PM9/14/17
                                  to Ke He, chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, Colin Blundell, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher

                                  Patch set 17:Code-Review +1

                                  View Change

                                    To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

                                    Gerrit-Project: chromium/src
                                    Gerrit-Branch: master
                                    Gerrit-MessageType: comment
                                    Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
                                    Gerrit-Change-Number: 648949
                                    Gerrit-PatchSet: 17
                                    Gerrit-Owner: Ke He <ke...@intel.com>
                                    Gerrit-Reviewer: Ke He <ke...@intel.com>
                                    Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
                                    Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
                                    Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                    Gerrit-CC: Adam Barth <aba...@chromium.org>
                                    Gerrit-CC: Colin Blundell <blun...@chromium.org>
                                    Gerrit-CC: Commit Bot <commi...@chromium.org>
                                    Gerrit-CC: Darin Fisher <da...@chromium.org>
                                    Gerrit-Comment-Date: Thu, 14 Sep 2017 16:41:08 +0000
                                    Gerrit-HasComments: No
                                    Gerrit-HasLabels: Yes

                                    Reilly Grant (Gerrit)

                                    unread,
                                    Sep 14, 2017, 2:07:37 PM9/14/17
                                    to Ke He, chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, Tom Sepez, Colin Blundell, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher

                                    View Change

                                    2 comments:

                                    To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

                                    Gerrit-Project: chromium/src
                                    Gerrit-Branch: master
                                    Gerrit-MessageType: comment
                                    Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
                                    Gerrit-Change-Number: 648949
                                    Gerrit-PatchSet: 17
                                    Gerrit-Owner: Ke He <ke...@intel.com>
                                    Gerrit-Reviewer: Ke He <ke...@intel.com>
                                    Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
                                    Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
                                    Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                    Gerrit-CC: Adam Barth <aba...@chromium.org>
                                    Gerrit-CC: Colin Blundell <blun...@chromium.org>
                                    Gerrit-CC: Commit Bot <commi...@chromium.org>
                                    Gerrit-CC: Darin Fisher <da...@chromium.org>
                                    Gerrit-Comment-Date: Thu, 14 Sep 2017 18:07:31 +0000
                                    Gerrit-HasComments: Yes
                                    Gerrit-HasLabels: No

                                    Ke He (Gerrit)

                                    unread,
                                    Sep 14, 2017, 8:33:49 PM9/14/17
                                    to chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, Tom Sepez, Colin Blundell, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher

                                    View Change

                                    1 comment:

                                      • nop, not size-1, should be size.

                                    To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

                                    Gerrit-Project: chromium/src
                                    Gerrit-Branch: master
                                    Gerrit-MessageType: comment
                                    Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
                                    Gerrit-Change-Number: 648949
                                    Gerrit-PatchSet: 17
                                    Gerrit-Owner: Ke He <ke...@intel.com>
                                    Gerrit-Reviewer: Ke He <ke...@intel.com>
                                    Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
                                    Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
                                    Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                    Gerrit-CC: Adam Barth <aba...@chromium.org>
                                    Gerrit-CC: Colin Blundell <blun...@chromium.org>
                                    Gerrit-CC: Commit Bot <commi...@chromium.org>
                                    Gerrit-CC: Darin Fisher <da...@chromium.org>
                                    Gerrit-Comment-Date: Fri, 15 Sep 2017 00:33:41 +0000
                                    Gerrit-HasComments: Yes
                                    Gerrit-HasLabels: No

                                    Ke He (Gerrit)

                                    unread,
                                    Sep 14, 2017, 8:34:14 PM9/14/17
                                    to chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, Tom Sepez, Colin Blundell, Commit Bot, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher

                                    Patch set 17:Commit-Queue +2

                                    View Change

                                      To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

                                      Gerrit-Project: chromium/src
                                      Gerrit-Branch: master
                                      Gerrit-MessageType: comment
                                      Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
                                      Gerrit-Change-Number: 648949
                                      Gerrit-PatchSet: 17
                                      Gerrit-Owner: Ke He <ke...@intel.com>
                                      Gerrit-Reviewer: Ke He <ke...@intel.com>
                                      Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
                                      Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
                                      Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                      Gerrit-CC: Adam Barth <aba...@chromium.org>
                                      Gerrit-CC: Colin Blundell <blun...@chromium.org>
                                      Gerrit-CC: Commit Bot <commi...@chromium.org>
                                      Gerrit-CC: Darin Fisher <da...@chromium.org>
                                      Gerrit-Comment-Date: Fri, 15 Sep 2017 00:34:11 +0000
                                      Gerrit-HasComments: No
                                      Gerrit-HasLabels: Yes

                                      Commit Bot (Gerrit)

                                      unread,
                                      Sep 14, 2017, 8:41:27 PM9/14/17
                                      to Ke He, chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, Tom Sepez, Colin Blundell, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher

                                      Commit Bot merged this change.

                                      View Change

                                      Approvals: Reilly Grant: Looks good to me Tom Sepez: Looks good to me Ke He: Commit
                                      Mojofication on //device/hid.


                                      In this CL:
                                      1) Add the HidManager and HidConnection interfaces in hid.mojom, and
                                      implements those mojo interfaces in //device/hid.

                                      2) Convert the clients in //extensions to use hid mojo interfaces.

                                      3) Change the type of HidUsageAndPage::usage_page to uint16_t.

                                      4) Rewrite the hid_apitest base on the new added mojo interfaces.

                                      TODO:
                                      1) Move client library files into device/hid/public/cpp.
                                      2) Host HidService by DeviceService instead of DeviceClient.
                                      3) Mojofy //device/u2f Or just move it into DeviceService.

                                      BUG=728223

                                      Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
                                      Reviewed-on: https://chromium-review.googlesource.com/648949
                                      Reviewed-by: Tom Sepez <tse...@chromium.org>
                                      Reviewed-by: Reilly Grant <rei...@chromium.org>
                                      Commit-Queue: Ke He <ke...@intel.com>
                                      Cr-Commit-Position: refs/heads/master@{#502109}
                                      27 files changed, 734 insertions(+), 471 deletions(-)


                                      To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

                                      Gerrit-Project: chromium/src
                                      Gerrit-Branch: master
                                      Gerrit-MessageType: merged
                                      Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
                                      Gerrit-Change-Number: 648949
                                      Gerrit-PatchSet: 18
                                      Gerrit-Owner: Ke He <ke...@intel.com>
                                      Gerrit-Reviewer: Commit Bot <commi...@chromium.org>
                                      Gerrit-Reviewer: Ke He <ke...@intel.com>
                                      Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
                                      Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
                                      Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                      Gerrit-CC: Adam Barth <aba...@chromium.org>
                                      Gerrit-CC: Colin Blundell <blun...@chromium.org>

                                      Ke He (Gerrit)

                                      unread,
                                      Sep 14, 2017, 8:42:55 PM9/14/17
                                      to Commit Bot, chromium-a...@chromium.org, dari...@chromium.org, extension...@chromium.org, qsr+...@chromium.org, viettrung...@chromium.org, mac-r...@chromium.org, yzshen...@chromium.org, Reilly Grant, Tom Sepez, Colin Blundell, Aaron Boodman, Adam Barth, chromium...@chromium.org, Darin Fisher

                                      View Change

                                      1 comment:

                                        • oh, I forgot to remove this. Will do in next CL.

                                      To view, visit change 648949. To unsubscribe, or for help writing mail filters, visit settings.

                                      Gerrit-Project: chromium/src
                                      Gerrit-Branch: master
                                      Gerrit-MessageType: comment
                                      Gerrit-Change-Id: I1de1b5211f7ef37f54d4bc18c7995a3b47cc7da2
                                      Gerrit-Change-Number: 648949
                                      Gerrit-PatchSet: 18
                                      Gerrit-Owner: Ke He <ke...@intel.com>
                                      Gerrit-Reviewer: Commit Bot <commi...@chromium.org>
                                      Gerrit-Reviewer: Ke He <ke...@intel.com>
                                      Gerrit-Reviewer: Reilly Grant <rei...@chromium.org>
                                      Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
                                      Gerrit-CC: Aaron Boodman <a...@chromium.org>
                                      Gerrit-CC: Adam Barth <aba...@chromium.org>
                                      Gerrit-CC: Colin Blundell <blun...@chromium.org>
                                      Gerrit-CC: Darin Fisher <da...@chromium.org>
                                      Gerrit-Comment-Date: Fri, 15 Sep 2017 00:42:52 +0000
                                      Gerrit-HasComments: Yes
                                      Gerrit-HasLabels: No
                                      Reply all
                                      Reply to author
                                      Forward
                                      0 new messages