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

Issue 343473005: mojo: fail gracefully if ServiceRegistry can't find ServiceConnector (Closed)

Created:
6 years, 6 months ago by tim (not reviewing)
Modified:
6 years, 6 months ago
Reviewers:
DaveMoore, viettrungluu
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Project:
chromium
Visibility:
Public.

Description

mojo: fail gracefully if ServiceRegistry can't find ServiceConnector Previously, the newly added test would crash because the ServiceRegistry asserted it had a ServiceConnector for anything allowed through by AllowIncomingConnection. Nothing actually prevents this from happening, so this patch makes sure it is handled gracefully by placing the InterfacePtr into an error state. BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278240

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : swap order of checks #

Patch Set 4 : tweak test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -3 lines) Patch
M mojo/public/cpp/application/lib/service_registry.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M mojo/service_manager/service_manager_unittest.cc View 1 2 3 4 chunks +36 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
tim (not reviewing)
Thanks both for the help today. Trung, please review. Dave FYI (although I'd accept approval ...
6 years, 6 months ago (2014-06-18 02:49:57 UTC) #1
DaveMoore
lgtm
6 years, 6 months ago (2014-06-18 13:23:54 UTC) #2
viettrungluu
LGTM (with question, possibly for Dave). https://codereview.chromium.org/343473005/diff/60001/mojo/public/cpp/application/lib/service_registry.cc File mojo/public/cpp/application/lib/service_registry.cc (right): https://codereview.chromium.org/343473005/diff/60001/mojo/public/cpp/application/lib/service_registry.cc#newcode62 mojo/public/cpp/application/lib/service_registry.cc:62: name_to_service_connector_.find(service_name) == I ...
6 years, 6 months ago (2014-06-18 14:52:06 UTC) #3
tim (not reviewing)
https://codereview.chromium.org/343473005/diff/60001/mojo/public/cpp/application/lib/service_registry.cc File mojo/public/cpp/application/lib/service_registry.cc (right): https://codereview.chromium.org/343473005/diff/60001/mojo/public/cpp/application/lib/service_registry.cc#newcode62 mojo/public/cpp/application/lib/service_registry.cc:62: name_to_service_connector_.find(service_name) == On 2014/06/18 14:52:06, viettrungluu wrote: > I ...
6 years, 6 months ago (2014-06-18 20:18:20 UTC) #4
tim (not reviewing)
The CQ bit was checked by tim@chromium.org
6 years, 6 months ago (2014-06-18 20:18:24 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/343473005/100001
6 years, 6 months ago (2014-06-18 20:20:28 UTC) #6
commit-bot: I haz the power
6 years, 6 months ago (2014-06-19 01:58:56 UTC) #7
Message was sent while issue was closed.
Change committed as 278240

Powered by Google App Engine
This is Rietveld 408576698