DescriptionMade conversions from PassRefPtr to WebPrivatePtr move only.
PassRefPtr objects being copied into WebPrivatePtr objects represent
places that would introduce ref churn in future patches where
PassRefPtr objects will be replaced with RefPtr objects. This patch
protects against that case.
This patch
- Changed PassRefPtr argument to WebPrivatePtr::Assign from a const ref
to an rvalue.
- Changed WebPrivatePtr assignment operator and constructor taking a
templated argument to use universal references and perfect forwarding
to allow PassRefPtr rvalues to be passed through them.
- Added std::move wraps to PassRefPtr lvalues passed to WebPrivatePtr
assignment operator and constructor.
BUG=494719
Review-Url: https://codereview.chromium.org/2879133002
Cr-Commit-Position: refs/heads/master@{#471686}
Committed: https://chromium.googlesource.com/chromium/src/+/400017516f70788e7297178a91155c3f501a8e41
Patch Set 1 #
Dependent Patchsets: Messages
Total messages: 13 (8 generated)
|