Fix LifeCycleWatcher in ScopedVectorTest to not be referenced after being destructed.

If the LifeCycleObject owned by LifeCycleWatcher still exists at the
time LifeCycleWatcher is destroyed, the LifeCycleObject's destructor
will call LifeCycleWatcher::OnLifeCycleDestroy() after
LifeCycleWatcher's destructor has finished running.

BUG=535321

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

Cr-Commit-Position: refs/heads/master@{#350683}


CrOS-Libchrome-Original-Commit: 8723a2c2a90e060006d1b45a6ce58bacf17bb9d8
1 file changed
tree: 541e69a6ef3303e5b17621ac3d96f0ba2ce6ff32
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/