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

Issue 1815493002: base: Add RetainedRef for unwrapping scoped_refptrs. (Closed)

Created:
4 years, 9 months ago by vmpstr
Modified:
4 years, 9 months ago
Reviewers:
danakj, Nico, tzik
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

base: Add RetainedRef for unwrapping scoped_refptrs. This patch adds a RetainedRef call in order to be used in Bind with scoped_refptrs that are to be unwrapped before calling the function. This is an effort to eliminate implicit scoped_refptr construction from Bind. Currently, scoped_refptr are always unwrapped into their underlying T*. This means that if the function does actually expect a scoped_refptr, one will be constructed implicitly. The plan is to stop unwrapping scoped_refptrs altogether. If the behavior is still desired, then the object has to be wrapped in a RetainedRef wrapper. For more details, please see crbug.com/589048 R=tzik@chromium.org, danakj@chromium.org, thakis@chromium.org BUG=589048 Committed: https://crrev.com/1d492be0508e1638a37ac6a156d16e9f724da69c Cr-Commit-Position: refs/heads/master@{#382076}

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -0 lines) Patch
M base/bind_helpers.h View 1 5 chunks +41 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
vmpstr
Please take a look. This is a work in progress proposal from the bug. The ...
4 years, 9 months ago (2016-03-17 21:18:48 UTC) #3
tzik
lgtm
4 years, 9 months ago (2016-03-18 03:18:48 UTC) #4
Nico
The overall plan sounds good. The patch looks fine too, but it's lacking a comment ...
4 years, 9 months ago (2016-03-18 14:16:36 UTC) #5
vmpstr
PTAL > Do you have a rough idea how frequently Bind() holds on to > ...
4 years, 9 months ago (2016-03-18 18:02:46 UTC) #6
Nico
lgtm
4 years, 9 months ago (2016-03-18 18:04:48 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1815493002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1815493002/20001
4 years, 9 months ago (2016-03-18 18:07:54 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-18 20:46:49 UTC) #12
commit-bot: I haz the power
4 years, 9 months ago (2016-03-18 20:48:48 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/1d492be0508e1638a37ac6a156d16e9f724da69c
Cr-Commit-Position: refs/heads/master@{#382076}

Powered by Google App Engine
This is Rietveld 408576698