Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(565)

Issue 1857033003: Implement tab indicator for WebUSB. (Closed)

Created:
4 years, 8 months ago by Reilly Grant (use Gerrit)
Modified:
4 years, 8 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, jam, markusheintz_, miu+watch_chromium.org, msramek+watch_chromium.org, nasko+codewatch_chromium.org, oshima+watch_chromium.org, qsr+mojo_chromium.org, raymes+watch_chromium.org, tfarina, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement tab indicator for WebUSB. When a frame within a tab has a USB device open a tab indicator is displayed to alert the user to the ongoing connection. BUG=592105 Committed: https://crrev.com/3e1eacc3ed0445d768faec12f11d86b6b53ca1e0 Cr-Commit-Position: refs/heads/master@{#386151}

Patch Set 1 : #

Patch Set 2 : Avoid going through the content layer. #

Patch Set 3 : Don't try to update tab indicator on Android. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -2 lines) Patch
M chrome/app/generated_resources.grd View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/app/theme/default_100_percent/legacy/tab_usb_indicator.png View Binary file 0 comments Download
A chrome/app/theme/default_200_percent/legacy/tab_usb_indicator.png View Binary file 0 comments Download
M chrome/app/theme/theme_resources.grd View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/tabs/tab_utils.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/tabs/tab_utils.cc View 1 7 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/usb/usb_tab_helper.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/usb/usb_tab_helper.cc View 1 2 3 chunks +31 lines, -1 line 0 comments Download
M chrome/browser/usb/web_usb_permission_provider.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/usb/web_usb_permission_provider.cc View 1 2 chunks +17 lines, -0 lines 3 comments Download
M device/usb/mojo/device_impl.cc View 1 2 chunks +6 lines, -1 line 0 comments Download
M device/usb/mojo/mock_permission_provider.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M device/usb/mojo/permission_provider.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
A ui/gfx/vector_icons/tab_usb_connected.icon View 1 chunk +39 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
Reilly Grant (use Gerrit)
oshima@, please review //chrome/app/theme. miu@, please review //chrome/browser/ui/tabs. jochen@, please review //content. estade@, please review ...
4 years, 8 months ago (2016-04-05 18:30:38 UTC) #3
Evan Stade
lgtm
4 years, 8 months ago (2016-04-05 18:55:52 UTC) #4
oshima
c/a/theme lgtm
4 years, 8 months ago (2016-04-05 21:33:12 UTC) #5
miu
lgtm
4 years, 8 months ago (2016-04-05 22:38:11 UTC) #6
jochen (gone - plz use gerrit)
why are we storing this state in the web contents? content shouldn't care about tab ...
4 years, 8 months ago (2016-04-06 04:17:31 UTC) #7
Reilly Grant (use Gerrit)
On 2016/04/06 at 04:17:31, jochen wrote: > why are we storing this state in the ...
4 years, 8 months ago (2016-04-07 00:38:53 UTC) #8
jochen (gone - plz use gerrit)
On 2016/04/07 at 00:38:53, reillyg wrote: > On 2016/04/06 at 04:17:31, jochen wrote: > > ...
4 years, 8 months ago (2016-04-07 01:22:41 UTC) #9
Reilly Grant (use Gerrit)
On 2016/04/07 at 01:22:41, jochen wrote: > On 2016/04/07 at 00:38:53, reillyg wrote: > > ...
4 years, 8 months ago (2016-04-07 21:06:02 UTC) #10
miu
lgtm % one consideration: https://codereview.chromium.org/1857033003/diff/60001/chrome/browser/usb/web_usb_permission_provider.cc File chrome/browser/usb/web_usb_permission_provider.cc (right): https://codereview.chromium.org/1857033003/diff/60001/chrome/browser/usb/web_usb_permission_provider.cc#newcode122 chrome/browser/usb/web_usb_permission_provider.cc:122: UsbTabHelper* tab_helper = UsbTabHelper::FromWebContents(web_contents); Seems ...
4 years, 8 months ago (2016-04-08 18:23:03 UTC) #11
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1857033003/diff/60001/chrome/browser/usb/web_usb_permission_provider.cc File chrome/browser/usb/web_usb_permission_provider.cc (right): https://codereview.chromium.org/1857033003/diff/60001/chrome/browser/usb/web_usb_permission_provider.cc#newcode122 chrome/browser/usb/web_usb_permission_provider.cc:122: UsbTabHelper* tab_helper = UsbTabHelper::FromWebContents(web_contents); On 2016/04/08 at 18:23:03, miu ...
4 years, 8 months ago (2016-04-08 18:26:32 UTC) #12
miu
still lgtm https://codereview.chromium.org/1857033003/diff/60001/chrome/browser/usb/web_usb_permission_provider.cc File chrome/browser/usb/web_usb_permission_provider.cc (right): https://codereview.chromium.org/1857033003/diff/60001/chrome/browser/usb/web_usb_permission_provider.cc#newcode122 chrome/browser/usb/web_usb_permission_provider.cc:122: UsbTabHelper* tab_helper = UsbTabHelper::FromWebContents(web_contents); On 2016/04/08 18:26:32, ...
4 years, 8 months ago (2016-04-08 18:28:21 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1857033003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1857033003/60001
4 years, 8 months ago (2016-04-08 18:42:03 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 8 months ago (2016-04-08 18:52:56 UTC) #17
commit-bot: I haz the power
4 years, 8 months ago (2016-04-08 18:55:21 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3e1eacc3ed0445d768faec12f11d86b6b53ca1e0
Cr-Commit-Position: refs/heads/master@{#386151}

Powered by Google App Engine
This is Rietveld 408576698