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

Issue 1098823003: Separate USB device permissions prompt logic into subclasses. (Closed)

Created:
5 years, 8 months ago by Reilly Grant (use Gerrit)
Modified:
5 years, 8 months ago
Reviewers:
Jeffrey Yasskin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Separate USB device permissions prompt logic into subclasses. This patch moves the specific logic for handling USB devices and device permissions out of the DevicePermissionsPrompt class and into a set of subclasses that are hidden in device_permissions_prompt.cc. This should allow a parallel set of subclasses for handling HID devices to be added without any more modifications to the base classes. BUG=457899 Committed: https://crrev.com/03256e5f3b29e4c29c102a289757f773e5a624a7 Cr-Commit-Position: refs/heads/master@{#326697}

Patch Set 1 : #

Total comments: 8

Patch Set 2 : Address jyasskin@'s comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -193 lines) Patch
M extensions/browser/api/device_permissions_prompt.h View 1 6 chunks +51 lines, -51 lines 0 comments Download
M extensions/browser/api/device_permissions_prompt.cc View 1 5 chunks +160 lines, -130 lines 0 comments Download
M extensions/browser/api/usb/usb_api.h View 4 chunks +4 lines, -6 lines 0 comments Download
M extensions/browser/api/usb/usb_api.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M extensions/extensions_strings.grd View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
Reilly Grant (use Gerrit)
Please take a look.
5 years, 8 months ago (2015-04-22 23:31:30 UTC) #4
Jeffrey Yasskin
https://codereview.chromium.org/1098823003/diff/40001/extensions/browser/api/device_permissions_prompt.cc File extensions/browser/api/device_permissions_prompt.cc (right): https://codereview.chromium.org/1098823003/diff/40001/extensions/browser/api/device_permissions_prompt.cc#newcode66 extensions/browser/api/device_permissions_prompt.cc:66: scoped_refptr<UsbDevice> device; Does this need to own a reference? ...
5 years, 8 months ago (2015-04-23 20:40:07 UTC) #5
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1098823003/diff/40001/extensions/browser/api/device_permissions_prompt.cc File extensions/browser/api/device_permissions_prompt.cc (right): https://codereview.chromium.org/1098823003/diff/40001/extensions/browser/api/device_permissions_prompt.cc#newcode66 extensions/browser/api/device_permissions_prompt.cc:66: scoped_refptr<UsbDevice> device; On 2015/04/23 20:40:07, Jeffrey Yasskin wrote: > ...
5 years, 8 months ago (2015-04-23 23:02:47 UTC) #6
Jeffrey Yasskin
lgtm
5 years, 8 months ago (2015-04-23 23:38:18 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1098823003/60001
5 years, 8 months ago (2015-04-23 23:44:44 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:60001)
5 years, 8 months ago (2015-04-24 00:19:56 UTC) #10
commit-bot: I haz the power
5 years, 8 months ago (2015-04-24 00:20:53 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/03256e5f3b29e4c29c102a289757f773e5a624a7
Cr-Commit-Position: refs/heads/master@{#326697}

Powered by Google App Engine
This is Rietveld 408576698