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

Issue 1742753002: Rename web_usb_permission_bubble.cc/h and webusb_permission_bubble.mojom (Closed)

Created:
4 years, 10 months ago by juncai
Modified:
4 years, 9 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, darin (slow to review), ben+mojo_chromium.org, dewittj
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rename web_usb_permission_bubble.cc/h and webusb_permission_bubble.mojom This patch renamed the following three files: web_usb_permission_bubble.cc/h -> web_usb_chooser_service.cc/h //components/webusb/public/interfaces/webusb_permission_bubble.mojom -> //device/usb/public/interfaces/chooser_service.mojom The previous filenames are misleading and confusing, since the word "bubble" in the original filename is a Chrome UI concept, but these files are not UI related. The new filenames better reflect the responsibilities and roles of these files. By moving //components/webusb/public/interfaces/webusb_permission_bubble.mojom to //device/usb/public/interfaces/chooser_service.mojom, it removes the //components dependency of: //content/renderer/usb/DEPS, the depencency breaks the DEP rule at: //content/renderer/DEPS This patch is a follow-up patch for: https://codereview.chromium.org/1624573004/ The above patch is closed. BUG=492204, 590268 Committed: https://crrev.com/0f6c2ac3d767f8bd859db4cc0bdddaf08a2ffd59 Cr-Commit-Position: refs/heads/master@{#381004}

Patch Set 1 : renamed web_usb_permission_bubble.cc/h and webusb_permission_bubble.mojom #

Patch Set 2 : address reillyg@'s comments #

Patch Set 3 : updated usb_chooser_bubble_controller.cc/h #

Total comments: 8

Patch Set 4 : address reillyg@'s comments #

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -209 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/usb/usb_chooser_bubble_controller.h View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/usb/usb_chooser_bubble_controller.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/usb/usb_tab_helper.h View 1 2 3 4 3 chunks +5 lines, -8 lines 0 comments Download
M chrome/browser/usb/usb_tab_helper.cc View 1 2 3 4 4 chunks +11 lines, -11 lines 0 comments Download
A + chrome/browser/usb/web_usb_chooser_service.h View 1 2 3 2 chunks +13 lines, -13 lines 0 comments Download
A + chrome/browser/usb/web_usb_chooser_service.cc View 1 2 3 3 chunks +6 lines, -6 lines 0 comments Download
D chrome/browser/usb/web_usb_permission_bubble.h View 1 chunk +0 lines, -48 lines 0 comments Download
D chrome/browser/usb/web_usb_permission_bubble.cc View 1 1 chunk +0 lines, -51 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M components/webusb.gypi View 1 2 chunks +0 lines, -14 lines 0 comments Download
M components/webusb/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M components/webusb/public/interfaces/BUILD.gn View 1 1 chunk +0 lines, -15 lines 0 comments Download
D components/webusb/public/interfaces/webusb_permission_bubble.mojom View 1 chunk +0 lines, -19 lines 0 comments Download
M content/app/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/content_app.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/BUILD.gn View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/usb/DEPS View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/usb/web_usb_client_impl.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/usb/web_usb_client_impl.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M device/usb/public/interfaces/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A + device/usb/public/interfaces/chooser_service.mojom View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M device/usb/usb.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 30 (16 generated)
juncai
jam@chromium.org: Please review changes in //chrome/browser/chrome_content_browser_client.cc //chrome/chrome_browser.gypi reillyg@chromium.org: Please review changes in the remaining files
4 years, 10 months ago (2016-02-26 18:46:35 UTC) #3
Reilly Grant (use Gerrit)
I'd actually suggest something like UsbChooserService since this interface doesn't really represent a bubble but ...
4 years, 10 months ago (2016-02-26 19:09:54 UTC) #5
jam
Thanks for following up on this. I commented on https://codereview.chromium.org/1624573004/, i think it's better to ...
4 years, 10 months ago (2016-02-26 21:40:41 UTC) #6
juncai
I updated this patch. Please review.
4 years, 10 months ago (2016-02-27 00:26:50 UTC) #13
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1742753002/diff/40001/components/webusb/public/interfaces/BUILD.gn File components/webusb/public/interfaces/BUILD.gn (left): https://codereview.chromium.org/1742753002/diff/40001/components/webusb/public/interfaces/BUILD.gn#oldcode1 components/webusb/public/interfaces/BUILD.gn:1: # Copyright 2015 The Chromium Authors. All rights reserved. ...
4 years, 10 months ago (2016-02-27 02:22:56 UTC) #16
juncai
https://codereview.chromium.org/1742753002/diff/40001/components/webusb/public/interfaces/BUILD.gn File components/webusb/public/interfaces/BUILD.gn (left): https://codereview.chromium.org/1742753002/diff/40001/components/webusb/public/interfaces/BUILD.gn#oldcode1 components/webusb/public/interfaces/BUILD.gn:1: # Copyright 2015 The Chromium Authors. All rights reserved. ...
4 years, 9 months ago (2016-02-29 18:55:23 UTC) #17
Reilly Grant (use Gerrit)
lgtm
4 years, 9 months ago (2016-02-29 18:59:13 UTC) #18
juncai
kindly ping jam@, :).
4 years, 9 months ago (2016-03-01 19:27:27 UTC) #19
jam
lgtm, sorry for the delay I didn't see this and then was away.
4 years, 9 months ago (2016-03-14 16:08:23 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1742753002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1742753002/120001
4 years, 9 months ago (2016-03-14 16:50:21 UTC) #23
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 9 months ago (2016-03-14 18:04:41 UTC) #25
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/0f6c2ac3d767f8bd859db4cc0bdddaf08a2ffd59 Cr-Commit-Position: refs/heads/master@{#381004}
4 years, 9 months ago (2016-03-14 18:06:00 UTC) #27
dewittj
On 2016/03/14 18:06:00, commit-bot: I haz the power wrote: > Patchset 7 (id:??) landed as ...
4 years, 9 months ago (2016-03-14 19:04:35 UTC) #28
Reilly Grant (use Gerrit)
4 years, 9 months ago (2016-03-14 19:21:01 UTC) #30
Message was sent while issue was closed.
On 2016/03/14 at 19:04:35, dewittj wrote:
> On 2016/03/14 18:06:00, commit-bot: I haz the power wrote:
> > Patchset 7 (id:??) landed as
> > https://crrev.com/0f6c2ac3d767f8bd859db4cc0bdddaf08a2ffd59
> > Cr-Commit-Position: refs/heads/master@{#381004}
> 
> I believe this bot breaks a test.  See, e.g.:
>
https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux/builds/6...
> 
> I will revert this patch in the next few minutes unless I hear from you.

Yes, sorry Jun for not warning you about this footgun.
third_party/Webkit/LayoutTests/usb/resources/usb-helpers.js contains references
to the mojom paths and needs to be updated to match the new names.

Powered by Google App Engine
This is Rietveld 408576698