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

Review URL: https://codereview.chromium.org/218583009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261045 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: 26d8482f9f2554a9926c7e5da18fa623ae3ad62f
9 files changed
tree: a98e56041800ded4a3210ceb542f029355ed6238
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. ipc/
  6. mojo/
  7. testing/
  8. third_party/
  9. ui/