DescriptionClean up ScopedVectorTest's LifeCycleObject.
The scoped_ptr<LifeCycleObject> was unncessary and confusing. The LifeCycleWatcher safely owns its LifeCycleObject and deletes it. The scoped_ptr made things a bit confusing even, since the only reason we weren't getting a double delete was because the scoped_ptr had an (ever so) slightly narrower scope than watcher.
Making the LifeCycleObject mostly private should encourage future callers not to add scary aliases.
R=willchan@chromium.org
BUG=None
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171058
Patch Set 1 #Patch Set 2 : ... switch off static_cast while I'm here. #Patch Set 3 : ... lose the casts, make LifeCycleObject more private. #
Total comments: 1
Patch Set 4 : ... ok, private and friendship is confusing with respect to base classes #Messages
Total messages: 7 (0 generated)
|