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