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

Issue 397733003: mojo: kill app_thread before unloading main app library and add tests (Closed)

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

Description

mojo: kill app_thread before unloading app libraries and add tests * Depends on https://codereview.chromium.org/394903005/ which makes the shell kill app threads on exit. * Adds tests that verify basic functionality and termination of NetworkService by the shell. BUG=378155, 394477 R=darin@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285396

Patch Set 1 #

Total comments: 8

Patch Set 2 : review + hack #

Total comments: 3

Patch Set 3 : less hack #

Total comments: 2

Patch Set 4 : remove profile_service #

Patch Set 5 : disable tests since https://codereview.chromium.org/394903005/ hasn't landed #

Patch Set 6 : also service_manager_unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -22 lines) Patch
M mojo/mojo.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M mojo/service_manager/service_manager.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M mojo/service_manager/service_manager.cc View 1 2 3 4 5 2 chunks +5 lines, -2 lines 0 comments Download
M mojo/shell/context.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M mojo/shell/context.cc View 1 2 3 4 2 chunks +6 lines, -1 line 0 comments Download
M mojo/shell/desktop/mojo_main.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/shell/in_process_dynamic_service_runner.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M mojo/shell/in_process_dynamic_service_runner.cc View 1 2 4 chunks +9 lines, -6 lines 0 comments Download
M mojo/shell/mojo_url_resolver.h View 1 2 chunks +5 lines, -4 lines 0 comments Download
M mojo/shell/mojo_url_resolver.cc View 1 2 chunks +15 lines, -2 lines 0 comments Download
M mojo/shell/shell_test_base.h View 3 chunks +13 lines, -0 lines 0 comments Download
M mojo/shell/shell_test_base.cc View 1 2 chunks +25 lines, -2 lines 0 comments Download
M mojo/shell/shell_test_base_unittest.cc View 1 2 3 4 2 chunks +43 lines, -1 line 0 comments Download
M mojo/shell/shell_test_helper.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
tim (not reviewing)
6 years, 5 months ago (2014-07-15 22:10:23 UTC) #1
darin (slow to review)
https://codereview.chromium.org/397733003/diff/1/mojo/shell/shell_test_base_unittest.cc File mojo/shell/shell_test_base_unittest.cc (right): https://codereview.chromium.org/397733003/diff/1/mojo/shell/shell_test_base_unittest.cc#newcode140 mojo/shell/shell_test_base_unittest.cc:140: service.Bind(ConnectToServiceViaNetwork( does this rely on a web server running ...
6 years, 5 months ago (2014-07-15 22:15:15 UTC) #2
tim (not reviewing)
https://codereview.chromium.org/397733003/diff/1/mojo/shell/shell_test_base_unittest.cc File mojo/shell/shell_test_base_unittest.cc (right): https://codereview.chromium.org/397733003/diff/1/mojo/shell/shell_test_base_unittest.cc#newcode140 mojo/shell/shell_test_base_unittest.cc:140: service.Bind(ConnectToServiceViaNetwork( On 2014/07/15 22:15:15, darin wrote: > does this ...
6 years, 5 months ago (2014-07-15 22:23:56 UTC) #3
darin (slow to review)
On 2014/07/15 22:23:56, timsteele wrote: > https://codereview.chromium.org/397733003/diff/1/mojo/shell/shell_test_base_unittest.cc > File mojo/shell/shell_test_base_unittest.cc (right): > > https://codereview.chromium.org/397733003/diff/1/mojo/shell/shell_test_base_unittest.cc#newcode140 > ...
6 years, 5 months ago (2014-07-15 22:44:23 UTC) #4
viettrungluu
https://codereview.chromium.org/397733003/diff/1/mojo/shell/mojo_url_resolver.cc File mojo/shell/mojo_url_resolver.cc (right): https://codereview.chromium.org/397733003/diff/1/mojo/shell/mojo_url_resolver.cc#newcode41 mojo/shell/mojo_url_resolver.cc:41: void MojoURLResolver::SetOrigin(const std::string& origin) { I wonder if "origin" ...
6 years, 5 months ago (2014-07-15 22:44:54 UTC) #5
darin (slow to review)
On 2014/07/15 22:44:23, darin wrote: > On 2014/07/15 22:23:56, timsteele wrote: > > > https://codereview.chromium.org/397733003/diff/1/mojo/shell/shell_test_base_unittest.cc ...
6 years, 5 months ago (2014-07-15 22:46:35 UTC) #6
darin (slow to review)
On 2014/07/15 22:44:54, viettrungluu wrote: > https://codereview.chromium.org/397733003/diff/1/mojo/shell/mojo_url_resolver.cc > File mojo/shell/mojo_url_resolver.cc (right): > > https://codereview.chromium.org/397733003/diff/1/mojo/shell/mojo_url_resolver.cc#newcode41 > ...
6 years, 5 months ago (2014-07-15 22:50:13 UTC) #7
tim (not reviewing)
https://codereview.chromium.org/397733003/diff/1/mojo/shell/mojo_url_resolver.h File mojo/shell/mojo_url_resolver.h (right): https://codereview.chromium.org/397733003/diff/1/mojo/shell/mojo_url_resolver.h#newcode27 mojo/shell/mojo_url_resolver.h:27: void SetOrigin(const std::string& origin); On 2014/07/15 22:44:53, viettrungluu wrote: ...
6 years, 5 months ago (2014-07-15 23:01:29 UTC) #8
darin (slow to review)
On 2014/07/15 23:01:29, timsteele wrote: > https://codereview.chromium.org/397733003/diff/1/mojo/shell/mojo_url_resolver.h > File mojo/shell/mojo_url_resolver.h (right): > > https://codereview.chromium.org/397733003/diff/1/mojo/shell/mojo_url_resolver.h#newcode27 > ...
6 years, 5 months ago (2014-07-15 23:15:03 UTC) #9
tim (not reviewing)
On 2014/07/15 22:46:35, darin wrote: > On 2014/07/15 22:44:23, darin wrote: > > On 2014/07/15 ...
6 years, 5 months ago (2014-07-16 00:11:30 UTC) #10
tim (not reviewing)
On 2014/07/16 00:11:30, timsteele wrote: > On 2014/07/15 22:46:35, darin wrote: > > On 2014/07/15 ...
6 years, 5 months ago (2014-07-16 00:54:18 UTC) #11
tim (not reviewing)
+davemoore, please see my last comment.
6 years, 5 months ago (2014-07-16 00:54:47 UTC) #12
DaveMoore
On 2014/07/16 00:54:47, timsteele wrote: > +davemoore, please see my last comment. We've given no ...
6 years, 5 months ago (2014-07-16 18:13:47 UTC) #13
tim (not reviewing)
I addressed comments and built this on top of a prototype CL for app termination ...
6 years, 5 months ago (2014-07-19 02:11:37 UTC) #14
darin (slow to review)
https://codereview.chromium.org/397733003/diff/20001/mojo/shell/in_process_dynamic_service_runner.cc File mojo/shell/in_process_dynamic_service_runner.cc (right): https://codereview.chromium.org/397733003/diff/20001/mojo/shell/in_process_dynamic_service_runner.cc#newcode95 mojo/shell/in_process_dynamic_service_runner.cc:95: // TODO(tim): Remove this ugly hack. nit: can you ...
6 years, 5 months ago (2014-07-19 21:18:00 UTC) #15
tim (not reviewing)
https://codereview.chromium.org/397733003/diff/20001/mojo/shell/in_process_dynamic_service_runner.cc File mojo/shell/in_process_dynamic_service_runner.cc (right): https://codereview.chromium.org/397733003/diff/20001/mojo/shell/in_process_dynamic_service_runner.cc#newcode95 mojo/shell/in_process_dynamic_service_runner.cc:95: // TODO(tim): Remove this ugly hack. On 2014/07/19 21:18:00, ...
6 years, 5 months ago (2014-07-19 21:59:43 UTC) #16
tim (not reviewing)
removed "hack".
6 years, 5 months ago (2014-07-19 22:40:10 UTC) #17
qsr
https://codereview.chromium.org/397733003/diff/60001/mojo/shell/context.cc File mojo/shell/context.cc (right): https://codereview.chromium.org/397733003/diff/60001/mojo/shell/context.cc#newcode164 mojo/shell/context.cc:164: GURL("mojo:profile_service")); This is probably outdated, the profile_service does not ...
6 years, 5 months ago (2014-07-21 08:09:20 UTC) #18
tim (not reviewing)
https://codereview.chromium.org/397733003/diff/60001/mojo/shell/context.cc File mojo/shell/context.cc (right): https://codereview.chromium.org/397733003/diff/60001/mojo/shell/context.cc#newcode164 mojo/shell/context.cc:164: GURL("mojo:profile_service")); On 2014/07/21 08:09:20, qsr wrote: > This is ...
6 years, 5 months ago (2014-07-21 16:47:01 UTC) #19
darin (slow to review)
LGTM
6 years, 5 months ago (2014-07-22 04:10:00 UTC) #20
tim (not reviewing)
The CQ bit was checked by tim@chromium.org
6 years, 5 months ago (2014-07-24 16:52:38 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/397733003/100001
6 years, 5 months ago (2014-07-24 16:53:52 UTC) #22
tim (not reviewing)
The CQ bit was checked by tim@chromium.org
6 years, 5 months ago (2014-07-24 18:44:43 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/397733003/120001
6 years, 5 months ago (2014-07-24 18:46:21 UTC) #24
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-24 22:33:11 UTC) #25
tim (not reviewing)
On 2014/07/24 22:33:11, I haz the power (commit-bot) wrote: > FYI, CQ is re-trying this ...
6 years, 5 months ago (2014-07-24 22:37:31 UTC) #26
tim (not reviewing)
6 years, 5 months ago (2014-07-24 22:38:56 UTC) #27
Message was sent while issue was closed.
Committed patchset #6 manually as r285396 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698