|
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
Total comments: 13
|
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
|
Total messages: 31 (0 generated)
|