|
Fix HidService lifetime issues.
This reverts HidService to a singleton instance, adding two gross
and presently hard-to-avoid properties:
1. Its instance getter takes a UI message loop proxy
2. Its lifetime is bound by the message loop of its origin thread
The purpose of this is to preserve the necessary threading discipline
required by both the chrome.hid API implementation and the
permission_broker DBus client while ensuring that the HidService is
created and destroyed on the same thread.
BUG= 401234
Committed: https://crrev.com/5ad6c89c9721d23519c062919d1d2c951aaea921
Cr-Commit-Position: refs/heads/master@{#292273}
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+68 lines, -103 lines) |
Patch |
 |
M |
chrome/browser/extensions/api/chrome_extensions_api_client.h
|
View
|
1
|
2 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/chrome_extensions_api_client.cc
|
View
|
1
|
2 chunks |
+0 lines, -10 lines |
0 comments
|
Download
|
 |
M |
device/hid/hid_connection_unittest.cc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
device/hid/hid_service.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
device/hid/hid_service.cc
|
View
|
1
2
|
2 chunks |
+45 lines, -6 lines |
0 comments
|
Download
|
 |
M |
device/hid/hid_service_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/extensions_api_client.h
|
View
|
1
|
2 chunks |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/extensions_api_client.cc
|
View
|
1
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/hid/hid_api.cc
|
View
|
1
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/hid/hid_device_manager.h
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/hid/hid_device_manager.cc
|
View
|
|
5 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
 |
M |
extensions/shell/app_shell.gyp
|
View
|
1
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
D |
extensions/shell/browser/api/shell_extensions_api_client.h
|
View
|
|
1 chunk |
+0 lines, -28 lines |
0 comments
|
Download
|
 |
D |
extensions/shell/browser/api/shell_extensions_api_client.cc
|
View
|
|
1 chunk |
+0 lines, -27 lines |
0 comments
|
Download
|
 |
M |
extensions/shell/browser/shell_extensions_browser_client.cc
|
View
|
1
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
Total messages: 11 (0 generated)
|