Clean 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 Review URL: https://chromiumcodereview.appspot.com/11416166 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171058 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment