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

Issue 218583009: Adds a way to associate key/value pairs with the environment (Closed)

Created:
6 years, 8 months ago by sky
Modified:
6 years, 8 months ago
CC:
chromium-reviews, viettrungluu+watch_chromium.org, jam, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, ben+mojo_chromium.org
Visibility:
Public.

Description

Adds a way to associate key/value pairs with the environment This is to fix a deadlock during shutdown. Specifically WatcherThreadManager was a LazyInstance. This means it would be shutdown by LazyInstance, which holds a lock. If the thread attempted to grab the lazyinstance lock (which it does), then we deadlock. Making the WatcherTheadManager owned by Environment makes for saner lifetime management and easier shutdown in tests. BUG=none TEST=none R=darin@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261045

Patch Set 1 #

Patch Set 2 : comment #

Total comments: 13

Patch Set 3 : integrate review feedback #

Patch Set 4 : setup environment in tests #

Patch Set 5 : make mojo_service_manager depend on mojo_common_lib #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -30 lines) Patch
M content/app/content_main_runner.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/app/mojo/mojo_init.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/app/mojo/mojo_init.cc View 1 2 3 1 chunk +12 lines, -14 lines 0 comments Download
A mojo/common/environment_data.h View 1 chunk +52 lines, -0 lines 0 comments Download
A mojo/common/environment_data.cc View 1 chunk +51 lines, -0 lines 0 comments Download
M mojo/common/handle_watcher.cc View 1 2 6 chunks +28 lines, -10 lines 0 comments Download
M mojo/common/handle_watcher_unittest.cc View 1 2 3 3 chunks +10 lines, -0 lines 0 comments Download
M mojo/environment/environment.cc View 1 2 1 chunk +20 lines, -5 lines 0 comments Download
M mojo/mojo.gyp View 1 2 3 4 3 chunks +4 lines, -0 lines 0 comments Download
M mojo/mojo_examples.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/cpp/environment/environment.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M mojo/public/cpp/environment/lib/environment.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 31 (0 generated)
sky
6 years, 8 months ago (2014-03-31 17:19:42 UTC) #1
darin (slow to review)
So, the underlying issue here is that you want to make sure the WatcherThreadManager instance ...
6 years, 8 months ago (2014-03-31 23:21:55 UTC) #2
darin (slow to review)
On 2014/03/31 23:21:55, darin wrote: > So, the underlying issue here is that you want ...
6 years, 8 months ago (2014-03-31 23:23:33 UTC) #3
darin (slow to review)
https://codereview.chromium.org/218583009/diff/20001/mojo/public/cpp/environment/environment.h File mojo/public/cpp/environment/environment.h (right): https://codereview.chromium.org/218583009/diff/20001/mojo/public/cpp/environment/environment.h#newcode15 mojo/public/cpp/environment/environment.h:15: class Impl { I might use a term other ...
6 years, 8 months ago (2014-03-31 23:24:46 UTC) #4
sky
https://codereview.chromium.org/218583009/diff/20001/content/app/mojo/mojo_init.cc File content/app/mojo/mojo_init.cc (right): https://codereview.chromium.org/218583009/diff/20001/content/app/mojo/mojo_init.cc#newcode22 content/app/mojo/mojo_init.cc:22: // instance of the ServiceManager. On 2014/03/31 23:21:55, darin ...
6 years, 8 months ago (2014-03-31 23:54:39 UTC) #5
darin (slow to review)
LGTM
6 years, 8 months ago (2014-04-01 00:14:18 UTC) #6
sky
The CQ bit was checked by sky@chromium.org
6 years, 8 months ago (2014-04-01 00:23:31 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/218583009/40001
6 years, 8 months ago (2014-04-01 00:25:06 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-01 00:57:35 UTC) #9
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=291650
6 years, 8 months ago (2014-04-01 00:57:36 UTC) #10
sky
The CQ bit was checked by sky@chromium.org
6 years, 8 months ago (2014-04-01 03:25:00 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/218583009/40001
6 years, 8 months ago (2014-04-01 03:25:08 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-01 04:27:06 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 8 months ago (2014-04-01 04:27:06 UTC) #14
sky
The CQ bit was checked by sky@chromium.org
6 years, 8 months ago (2014-04-01 15:35:36 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/218583009/60001
6 years, 8 months ago (2014-04-01 15:36:06 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-01 16:41:49 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_clang_dbg
6 years, 8 months ago (2014-04-01 16:41:49 UTC) #18
sky
The CQ bit was checked by sky@chromium.org
6 years, 8 months ago (2014-04-01 18:21:48 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/218583009/80001
6 years, 8 months ago (2014-04-01 18:23:03 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-01 18:41:06 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on mac_chromium_rel
6 years, 8 months ago (2014-04-01 18:41:06 UTC) #22
sky
The CQ bit was checked by sky@chromium.org
6 years, 8 months ago (2014-04-01 20:02:57 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/218583009/80001
6 years, 8 months ago (2014-04-01 20:03:41 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-01 20:53:07 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on mac_chromium_rel
6 years, 8 months ago (2014-04-01 20:53:07 UTC) #26
sky
The CQ bit was checked by sky@chromium.org
6 years, 8 months ago (2014-04-01 20:55:33 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/218583009/80001
6 years, 8 months ago (2014-04-01 20:55:39 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/218583009/80001
6 years, 8 months ago (2014-04-01 22:52:44 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/218583009/80001
6 years, 8 months ago (2014-04-02 02:04:54 UTC) #30
commit-bot: I haz the power
6 years, 8 months ago (2014-04-02 03:40:06 UTC) #31
Message was sent while issue was closed.
Change committed as 261045

Powered by Google App Engine
This is Rietveld 408576698