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

Issue 8728020: chrome: dbus: support asynchronous method replies (Closed)

Created:
9 years ago by Vince Laviano
Modified:
9 years ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

chrome: dbus: support asynchronous method replies BUG=chromium-os:23241 TEST=Unit tests and manual testing on device. Change-Id: Iab009ddbd12dea1e12299ae0ddccd4e430d9cf97 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112131

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix comment #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -63 lines) Patch
M chrome/browser/chromeos/dbus/proxy_resolution_service_provider.h View 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/dbus/proxy_resolution_service_provider.cc View 1 3 chunks +14 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/dbus/proxy_resolution_service_provider_unittest.cc View 5 chunks +38 lines, -17 lines 2 comments Download
M dbus/bus.h View 1 chunk +6 lines, -2 lines 0 comments Download
M dbus/end_to_end_async_unittest.cc View 1 chunk +18 lines, -0 lines 0 comments Download
M dbus/exported_object.h View 2 chunks +16 lines, -3 lines 0 comments Download
M dbus/exported_object.cc View 2 chunks +27 lines, -13 lines 0 comments Download
M dbus/test_service.h View 3 chunks +12 lines, -4 lines 0 comments Download
M dbus/test_service.cc View 3 chunks +38 lines, -10 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Vince Laviano
This is a resubmission of a reverted CL. The previous code review is here: http://codereview.chromium.org/8637002/ ...
9 years ago (2011-11-29 21:40:23 UTC) #1
stevenjb
LGTM http://codereview.chromium.org/8728020/diff/1/chrome/browser/chromeos/dbus/proxy_resolution_service_provider.cc File chrome/browser/chromeos/dbus/proxy_resolution_service_provider.cc (right): http://codereview.chromium.org/8728020/diff/1/chrome/browser/chromeos/dbus/proxy_resolution_service_provider.cc#newcode250 chrome/browser/chromeos/dbus/proxy_resolution_service_provider.cc:250: // Return an empty response for now. We'll ...
9 years ago (2011-11-29 22:06:53 UTC) #2
Vince Laviano
http://codereview.chromium.org/8728020/diff/1/chrome/browser/chromeos/dbus/proxy_resolution_service_provider.cc File chrome/browser/chromeos/dbus/proxy_resolution_service_provider.cc (right): http://codereview.chromium.org/8728020/diff/1/chrome/browser/chromeos/dbus/proxy_resolution_service_provider.cc#newcode250 chrome/browser/chromeos/dbus/proxy_resolution_service_provider.cc:250: // Return an empty response for now. We'll send ...
9 years ago (2011-11-29 22:11:47 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vlaviano@chromium.org/8728020/4001
9 years ago (2011-11-29 22:11:57 UTC) #4
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
9 years ago (2011-11-30 00:12:46 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vlaviano@chromium.org/8728020/4001
9 years ago (2011-11-30 00:15:14 UTC) #6
commit-bot: I haz the power
Try job failure for 8728020-4001 (retry) on mac_rel for step "sql_unittests". It's a second try, ...
9 years ago (2011-11-30 02:01:40 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vlaviano@chromium.org/8728020/4001
9 years ago (2011-11-30 02:36:58 UTC) #8
commit-bot: I haz the power
Change committed as 112131
9 years ago (2011-11-30 04:57:44 UTC) #9
Paweł Hajdan Jr.
Drive-by, it's even quite possible that the "while" loop can be just removed. Could you ...
9 years ago (2011-11-30 08:46:10 UTC) #10
Vince Laviano
9 years ago (2011-11-30 23:47:47 UTC) #11
http://codereview.chromium.org/8728020/diff/4001/chrome/browser/chromeos/dbus...
File chrome/browser/chromeos/dbus/proxy_resolution_service_provider_unittest.cc
(right):

http://codereview.chromium.org/8728020/diff/4001/chrome/browser/chromeos/dbus...
chrome/browser/chromeos/dbus/proxy_resolution_service_provider_unittest.cc:266:
message_loop_.Run();
On 2011/11/30 08:46:11, Paweł Hajdan Jr. wrote:
> This is generally an anti-pattern. Could you only Run the MessageLoop once and
> quit it once? Running ML in a loop is harder to debug, and suggests you're not
> waiting for an event. Instead of checking the condition in the loop, you
should
> Quit the loop in the place where you currently set response_received_ to true.

http://codereview.chromium.org/8764006/

Powered by Google App Engine
This is Rietveld 408576698