Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Issue 2879133002: Made conversions from PassRefPtr to WebPrivatePtr move only. (Closed)

Created:
3 years, 7 months ago by Bugs Nash
Modified:
3 years, 7 months ago
Reviewers:
haraken, Yuta Kitamura
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, dglazkov+blink, kinuko+watch
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Made 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -16 lines) Patch
M third_party/WebKit/Source/platform/exported/WebCryptoResult.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/exported/WebData.cpp View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebHTTPLoadInfo.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/exported/WebThreadSafeData.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebURLLoadTiming.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebSerializedScriptValue.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebUserGestureToken.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/platform/WebPrivatePtr.h View 3 chunks +5 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 13 (8 generated)
Bugs Nash
Note that this patch only allows PassRefPtr to be moved into WebPrivatePtr. This means that ...
3 years, 7 months ago (2017-05-15 04:45:35 UTC) #4
Yuta Kitamura
lgtm
3 years, 7 months ago (2017-05-15 04:47:23 UTC) #5
haraken
LGTM
3 years, 7 months ago (2017-05-15 04:48:47 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2879133002/1
3 years, 7 months ago (2017-05-15 06:57:37 UTC) #10
commit-bot: I haz the power
3 years, 7 months ago (2017-05-15 07:02:45 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/400017516f70788e7297178a9115...

Powered by Google App Engine
This is Rietveld 408576698