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

Issue 15741025: Linux/CrOS: Retry connecting to mtpd. (Closed)

Created:
7 years, 6 months ago by Lei Zhang
Modified:
7 years, 6 months ago
Reviewers:
satorux1
CC:
chromium-reviews
Visibility:
Public.

Description

Linux/CrOS: Listen for mtpd service owner change events and communicate with the new service owner. The mtpd dbus service may not start right away. Any attempts to use it may be racy due to the lack of a service owner. Listening for service owner changes fixes this race. BUG=241302 TEST=Manual, see bug for repro case. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=205331

Patch Set 1 #

Patch Set 2 : #

Total comments: 10

Patch Set 3 : address comments, but no tests #

Total comments: 14

Patch Set 4 : #

Total comments: 10

Patch Set 5 : rebase #

Patch Set 6 : address comments #

Total comments: 2

Patch Set 7 : RunLoop::Run() + Quit(), instead of RunUntilIdle() #

Total comments: 8

Patch Set 8 : address nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+395 lines, -22 lines) Patch
M dbus/bus.h View 1 2 3 4 5 7 chunks +53 lines, -2 lines 0 comments Download
M dbus/bus.cc View 1 2 3 4 5 6 chunks +179 lines, -1 line 0 comments Download
M dbus/bus_unittest.cc View 1 2 3 4 5 6 7 3 chunks +122 lines, -0 lines 0 comments Download
M device/media_transfer_protocol/media_transfer_protocol_manager.cc View 1 2 3 4 5 13 chunks +41 lines, -19 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
Lei Zhang
We probably need to do something like this, or have a way on ChromeOS to ...
7 years, 6 months ago (2013-05-29 21:23:21 UTC) #1
Lei Zhang
On 2013/05/29 21:23:21, Lei Zhang wrote: > We probably need to do something like this, ...
7 years, 6 months ago (2013-05-29 23:28:33 UTC) #2
satorux1
Could you explain the root cause of this problem (BTW, would be nice to explain ...
7 years, 6 months ago (2013-05-30 00:58:10 UTC) #3
satorux1
Another way to solve this problem is to ensure that Chrome starts after MTPD is ...
7 years, 6 months ago (2013-05-30 01:01:14 UTC) #4
Lei Zhang
On 2013/05/30 00:58:10, satorux1 wrote: > Could you explain the root cause of this problem ...
7 years, 6 months ago (2013-05-30 01:18:51 UTC) #5
satorux1
On 2013/05/30 01:18:51, Lei Zhang wrote: > On 2013/05/30 00:58:10, satorux1 wrote: > > Could ...
7 years, 6 months ago (2013-05-30 01:24:16 UTC) #6
Lei Zhang
PTAL at patch set 2. I have added the functionality to listen and un-listen for ...
7 years, 6 months ago (2013-05-31 02:51:11 UTC) #7
Lei Zhang
On 2013/05/30 01:24:16, satorux1 wrote: > Just to clarify, Chrome does not connect to MTPD ...
7 years, 6 months ago (2013-05-31 02:57:41 UTC) #8
satorux1
https://codereview.chromium.org/15741025/diff/17005/dbus/bus.cc File dbus/bus.cc (right): https://codereview.chromium.org/15741025/diff/17005/dbus/bus.cc#newcode33 dbus/bus.cc:33: const char kNameOwnerChangedSignal[] = "NameOwnerChanged"; I think we have ...
7 years, 6 months ago (2013-06-03 02:26:06 UTC) #9
satorux1
On 2013/05/31 02:57:41, Lei Zhang wrote: > On 2013/05/30 01:24:16, satorux1 wrote: > > Just ...
7 years, 6 months ago (2013-06-03 02:29:30 UTC) #10
Lei Zhang
Looking at unit tests now... https://codereview.chromium.org/15741025/diff/17005/dbus/bus.cc File dbus/bus.cc (right): https://codereview.chromium.org/15741025/diff/17005/dbus/bus.cc#newcode33 dbus/bus.cc:33: const char kNameOwnerChangedSignal[] = ...
7 years, 6 months ago (2013-06-04 00:35:53 UTC) #11
satorux1
https://codereview.chromium.org/15741025/diff/17005/dbus/bus.cc File dbus/bus.cc (right): https://codereview.chromium.org/15741025/diff/17005/dbus/bus.cc#newcode33 dbus/bus.cc:33: const char kNameOwnerChangedSignal[] = "NameOwnerChanged"; On 2013/06/04 00:35:53, Lei ...
7 years, 6 months ago (2013-06-04 01:09:05 UTC) #12
Lei Zhang
Test added in patch set 4. I cannot speak to how other dbus code work ...
7 years, 6 months ago (2013-06-04 06:15:56 UTC) #13
satorux1
Sorry for the belated response. https://codereview.chromium.org/15741025/diff/30001/dbus/bus_unittest.cc File dbus/bus_unittest.cc (right): https://codereview.chromium.org/15741025/diff/30001/dbus/bus_unittest.cc#newcode397 dbus/bus_unittest.cc:397: base::Thread dbus_thread("D-Bus thread"); Do ...
7 years, 6 months ago (2013-06-05 01:33:58 UTC) #14
Lei Zhang
https://codereview.chromium.org/15741025/diff/30001/dbus/bus_unittest.cc File dbus/bus_unittest.cc (right): https://codereview.chromium.org/15741025/diff/30001/dbus/bus_unittest.cc#newcode397 dbus/bus_unittest.cc:397: base::Thread dbus_thread("D-Bus thread"); On 2013/06/05 01:33:58, satorux1 wrote: > ...
7 years, 6 months ago (2013-06-09 04:37:56 UTC) #15
satorux1
https://codereview.chromium.org/15741025/diff/44001/dbus/bus_unittest.cc File dbus/bus_unittest.cc (right): https://codereview.chromium.org/15741025/diff/44001/dbus/bus_unittest.cc#newcode329 dbus/bus_unittest.cc:329: base::RunLoop().RunUntilIdle(); this call looks unnecessary. https://codereview.chromium.org/15741025/diff/44001/dbus/bus_unittest.cc#newcode337 dbus/bus_unittest.cc:337: base::RunLoop().RunUntilIdle(); Not ...
7 years, 6 months ago (2013-06-10 01:16:22 UTC) #16
Lei Zhang
On 2013/06/10 01:16:22, satorux1 wrote: > https://codereview.chromium.org/15741025/diff/44001/dbus/bus_unittest.cc > File dbus/bus_unittest.cc (right): > > https://codereview.chromium.org/15741025/diff/44001/dbus/bus_unittest.cc#newcode329 > ...
7 years, 6 months ago (2013-06-10 04:50:07 UTC) #17
satorux1
LGTM with nits. Thank you for writing the unit test! https://codereview.chromium.org/15741025/diff/52001/dbus/bus_unittest.cc File dbus/bus_unittest.cc (right): https://codereview.chromium.org/15741025/diff/52001/dbus/bus_unittest.cc#newcode29 ...
7 years, 6 months ago (2013-06-10 04:58:46 UTC) #18
Lei Zhang
https://codereview.chromium.org/15741025/diff/52001/dbus/bus_unittest.cc File dbus/bus_unittest.cc (right): https://codereview.chromium.org/15741025/diff/52001/dbus/bus_unittest.cc#newcode29 dbus/bus_unittest.cc:29: // test helpers for BusTest.ListenForServiceOwnerChange. On 2013/06/10 04:58:46, satorux1 ...
7 years, 6 months ago (2013-06-10 05:20:32 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thestig@chromium.org/15741025/59001
7 years, 6 months ago (2013-06-10 05:20:50 UTC) #20
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=136121
7 years, 6 months ago (2013-06-10 06:40:00 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thestig@chromium.org/15741025/59001
7 years, 6 months ago (2013-06-10 08:12:58 UTC) #22
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=136169
7 years, 6 months ago (2013-06-10 08:57:47 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thestig@chromium.org/15741025/59001
7 years, 6 months ago (2013-06-10 09:15:06 UTC) #24
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=136201
7 years, 6 months ago (2013-06-10 09:58:13 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thestig@chromium.org/15741025/59001
7 years, 6 months ago (2013-06-10 18:47:23 UTC) #26
commit-bot: I haz the power
7 years, 6 months ago (2013-06-10 22:52:35 UTC) #27
Message was sent while issue was closed.
Change committed as 205331

Powered by Google App Engine
This is Rietveld 408576698