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

Issue 11028044: Allow scoped_ptr variables to be used in boolean expressions (Closed)

Created:
8 years, 2 months ago by enne (OOO)
Modified:
8 years, 2 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, gavinp+memory_chromium.org, danakj, tfarina, awong, levin
Visibility:
Public.

Description

Allow scoped_ptr variables to be used in boolean expressions BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=160570

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address review comments #

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

Messages

Total messages: 13 (0 generated)
enne (OOO)
I find it tedious to have to .get() any scoped_ptr variable that I want to ...
8 years, 2 months ago (2012-10-04 23:36:25 UTC) #1
tfarina
This is helpful for converting from OwnPtr to scoped_ptr in cc/, since OwnPtr seems to ...
8 years, 2 months ago (2012-10-04 23:44:01 UTC) #2
enne (OOO)
/me adds a reviewer who is actually an OWNER.
8 years, 2 months ago (2012-10-05 17:39:59 UTC) #3
willchan no longer on Chromium
+jyasskin Jeffrey, will unique_ptr support this? If not, I'm not inclined to approve this, since ...
8 years, 2 months ago (2012-10-05 21:14:10 UTC) #4
tfarina
On Fri, Oct 5, 2012 at 6:14 PM, William Chan (陈智昌) <willchan@chromium.org> wrote: > +jyasskin ...
8 years, 2 months ago (2012-10-05 21:16:32 UTC) #5
Jeffrey Yasskin
On Fri, Oct 5, 2012 at 2:14 PM, William Chan (陈智昌) <willchan@chromium.org> wrote: > +jyasskin ...
8 years, 2 months ago (2012-10-05 21:26:06 UTC) #6
willchan no longer on Chromium
I'm headed into the office and will sanity check the CL then. On Oct 5, ...
8 years, 2 months ago (2012-10-05 21:47:41 UTC) #7
willchan no longer on Chromium
Just have a few nits. https://codereview.chromium.org/11028044/diff/1/base/memory/scoped_ptr.h File base/memory/scoped_ptr.h (right): https://codereview.chromium.org/11028044/diff/1/base/memory/scoped_ptr.h#newcode207 base/memory/scoped_ptr.h:207: // implicitly convertable to ...
8 years, 2 months ago (2012-10-05 22:19:13 UTC) #8
willchan no longer on Chromium
Jeffrey offers the great suggestion of conditionally compiling with explicit operator bool() in C++11 mode. ...
8 years, 2 months ago (2012-10-05 22:21:53 UTC) #9
enne (OOO)
Thanks, I'll send an email to chromium-dev once this lands. If only C++11x constructs worked ...
8 years, 2 months ago (2012-10-06 02:18:41 UTC) #10
willchan no longer on Chromium
lgtm
8 years, 2 months ago (2012-10-06 02:20:17 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/11028044/11001
8 years, 2 months ago (2012-10-06 03:22:40 UTC) #12
commit-bot: I haz the power
8 years, 2 months ago (2012-10-06 07:47:13 UTC) #13
Change committed as 160570

Powered by Google App Engine
This is Rietveld 408576698