Add missing .Pass() on return of SampleVector
commit3bec0ffd9cfd92611182bc0f28e5dbc57f4cbaf1
authorscottmg <scottmg@chromium.org>
Tue, 27 Jan 2015 22:24:27 +0000 (27 14:24 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 27 Jan 2015 22:25:30 +0000 (27 22:25 +0000)
treeebf8645d969515b4e64912f4fc754ed79b25011a
parent862a31a017651edb3ef0edb04897538766d84089
Add missing .Pass() on return of SampleVector

On VS2015 without this causes:

d:\src\cr3\src\base\metrics\histogram.cc(372): error C2248: 'scoped_ptr<base::SampleVector,base::DefaultDeleter<T>>::scoped_ptr': cannot access private member declared in class 'scoped_ptr<base::SampleVector,base::DefaultDeleter<T>>'
        with
        [
            T=base::SampleVector
        ]
d:\src\cr3\src\base\memory\scoped_ptr.h(312): note: see declaration of 'scoped_ptr<base::SampleVector,base::DefaultDeleter<T>>::scoped_ptr'
        with
        [
            T=base::SampleVector
        ]

I'm not entirely sure why this doesn't happen on earlier compilers,
I guess something's move-ability changed.

R=isherman@chromium.org
BUG=440500

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

Cr-Commit-Position: refs/heads/master@{#313378}
base/metrics/histogram.cc