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

Issue 606503002: Rewrite apps::SavedDevicesService as extensions::DevicePermissionsManager. (Closed)

Created:
6 years, 2 months ago by Reilly Grant (use Gerrit)
Modified:
6 years, 2 months ago
Reviewers:
scheib, Yoyo Zhou
CC:
chromium-reviews, extensions-reviews_chromium.org, vsevik, tfarina, yurys, paulirish+reviews_chromium.org, devtools-reviews_chromium.org, chromium-apps-reviews_chromium.org, aandrey+blink_chromium.org, pfeldman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Rewrite apps::SavedDevicesService as extensions::DevicePermissionsManager. This service doesn't need any Chrome dependencies after all and so it can move into //extensions. This will make it possible for the USB extensions API code to directly depend on it. In the process I have rewritten the service with a couple improvements: * C++11 for-each loops are used instead of explicit iterators. * The DevicePermissions object is no longer an inner class (so it can be forward declared) and it is explicitly copied when requested so that the ownership of data on the FILE and UI threads is clear. BUG= Committed: https://crrev.com/bc82d3c46cedec68b175c9572a7de412eb0e6427 Cr-Commit-Position: refs/heads/master@{#297230}

Patch Set 1 : #

Patch Set 2 : Use C++11 for each loops and auto. #

Total comments: 1

Patch Set 3 : Added comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+596 lines, -728 lines) Patch
M apps/BUILD.gn View 2 chunks +0 lines, -5 lines 0 comments Download
M apps/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M apps/apps.gypi View 1 chunk +0 lines, -4 lines 0 comments Download
D apps/saved_devices_service.h View 1 chunk +0 lines, -123 lines 0 comments Download
D apps/saved_devices_service.cc View 1 chunk +0 lines, -316 lines 0 comments Download
D apps/saved_devices_service_factory.h View 1 chunk +0 lines, -35 lines 0 comments Download
D apps/saved_devices_service_factory.cc View 1 chunk +0 lines, -39 lines 0 comments Download
D apps/saved_devices_service_unittest.cc View 1 chunk +0 lines, -152 lines 0 comments Download
A + chrome/browser/extensions/api/device_permissions_manager_unittest.cc View 7 chunks +46 lines, -50 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 2 chunks +1 line, -1 line 0 comments Download
M extensions/browser/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/browser/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A extensions/browser/api/device_permissions_manager.h View 1 2 1 chunk +151 lines, -0 lines 0 comments Download
A extensions/browser/api/device_permissions_manager.cc View 1 1 chunk +384 lines, -0 lines 0 comments Download
M extensions/browser/api/usb/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M extensions/browser/api/usb_private/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M extensions/extensions.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/extensions_strings.grd View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
Reilly Grant (use Gerrit)
This patch depends on https://codereview.chromium.org/601073002/.
6 years, 2 months ago (2014-09-25 06:06:10 UTC) #5
Reilly Grant (use Gerrit)
Updated this patch with the latest C++11 goodness and added yoz@ to review the extensions/browser/DEPS ...
6 years, 2 months ago (2014-09-26 20:54:48 UTC) #8
Yoyo Zhou
On 2014/09/26 20:54:48, reillyg wrote: > Updated this patch with the latest C++11 goodness and ...
6 years, 2 months ago (2014-09-26 21:04:44 UTC) #9
Reilly Grant (use Gerrit)
On 2014/09/26 21:04:44, Yoyo Zhou wrote: > On 2014/09/26 20:54:48, reillyg wrote: > > Updated ...
6 years, 2 months ago (2014-09-26 21:05:26 UTC) #10
Yoyo Zhou
On 2014/09/26 21:05:26, reillyg wrote: > On 2014/09/26 21:04:44, Yoyo Zhou wrote: > > On ...
6 years, 2 months ago (2014-09-26 21:21:58 UTC) #11
Reilly Grant (use Gerrit)
On 2014/09/26 21:21:58, Yoyo Zhou wrote: > On 2014/09/26 21:05:26, reillyg wrote: > > On ...
6 years, 2 months ago (2014-09-26 21:22:36 UTC) #12
scheib
lgtm with a few followups: - Patch comment should describe the changes beyond the move. ...
6 years, 2 months ago (2014-09-29 15:30:53 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/606503002/120001
6 years, 2 months ago (2014-09-29 19:23:06 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:120001) as 5b5facd07b5b223f57d38ef7197a9b8e02fa1181
6 years, 2 months ago (2014-09-29 19:28:02 UTC) #16
commit-bot: I haz the power
6 years, 2 months ago (2014-09-29 19:28:45 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/bc82d3c46cedec68b175c9572a7de412eb0e6427
Cr-Commit-Position: refs/heads/master@{#297230}

Powered by Google App Engine
This is Rietveld 408576698