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

Issue 464753002: Fix HidService lifetime issues. (Closed)

Created:
6 years, 4 months ago by Ken Rockot(use gerrit already)
Modified:
6 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

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}

Patch Set 1 : #

Total comments: 3

Patch Set 2 : merge it up #

Patch Set 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

Messages

Total messages: 11 (0 generated)
Ken Rockot(use gerrit already)
Renaud could you please take a look? Also +Reilly for comments/FYI
6 years, 4 months ago (2014-08-12 17:01:06 UTC) #1
Reilly Grant (use Gerrit)
https://codereview.chromium.org/464753002/diff/20001/device/hid/hid_connection_unittest.cc File device/hid/hid_connection_unittest.cc (right): https://codereview.chromium.org/464753002/diff/20001/device/hid/hid_connection_unittest.cc#newcode60 device/hid/hid_connection_unittest.cc:60: message_loop_->message_loop_proxy())); This line points out exactly what I'm going ...
6 years, 4 months ago (2014-08-12 17:12:18 UTC) #2
rpaquay
lgtm with a couple of questions. https://codereview.chromium.org/464753002/diff/20001/device/hid/hid_service.cc File device/hid/hid_service.cc (right): https://codereview.chromium.org/464753002/diff/20001/device/hid/hid_service.cc#newcode46 device/hid/hid_service.cc:46: delete this; Are ...
6 years, 3 months ago (2014-08-26 17:35:12 UTC) #3
Ken Rockot(use gerrit already)
On 2014/08/26 17:35:12, rpaquay wrote: > lgtm with a couple of questions. > > https://codereview.chromium.org/464753002/diff/20001/device/hid/hid_service.cc ...
6 years, 3 months ago (2014-08-27 22:10:34 UTC) #4
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 3 months ago (2014-08-27 22:10:39 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rockot@chromium.org/464753002/60001
6 years, 3 months ago (2014-08-27 22:11:51 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 3 months ago (2014-08-27 23:22:51 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:60001) as 13aca592b24cdeb9b558716db71c48961e48066f
6 years, 3 months ago (2014-08-27 23:52:56 UTC) #8
eroman
A revert of this CL (patchset #3) has been created in https://codereview.chromium.org/512983002/ by eroman@chromium.org. The ...
6 years, 3 months ago (2014-08-28 00:15:19 UTC) #9
awong
On 2014/08/28 00:15:19, eroman wrote: > A revert of this CL (patchset #3) has been ...
6 years, 3 months ago (2014-08-28 00:25:14 UTC) #10
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:55:49 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5ad6c89c9721d23519c062919d1d2c951aaea921
Cr-Commit-Position: refs/heads/master@{#292273}

Powered by Google App Engine
This is Rietveld 408576698