|
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}
Total comments: 1
|
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
|
Total messages: 17 (7 generated)
|