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

Issue 9232069: Add assert() for scoped_refptr<T>::operator->() (Closed)

Created:
8 years, 11 months ago by akalin
Modified:
8 years, 10 months ago
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Add assert() for scoped_refptr<T>::operator->() This is to make NULL dereference crashes more obvious. Also matches scoped_ptr (which uses assert) and weak_ptr (which uses DCHECK). DCHECK wasn't used because it pulls in logging.h, and that somehow conflicts with a webkit #define of LOG. BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=119820

Patch Set 1 #

Patch Set 2 : Use assert() instead #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M base/memory/ref_counted.h View 1 2 chunks +6 lines, -1 line 1 comment Download

Messages

Total messages: 10 (0 generated)
akalin
+jar for review
8 years, 11 months ago (2012-01-28 02:33:01 UTC) #1
akalin
On 2012/01/28 02:33:01, akalin wrote: > +jar for review one second, it looks like including ...
8 years, 11 months ago (2012-01-28 02:37:36 UTC) #2
akalin
On 2012/01/28 02:37:36, akalin wrote: > On 2012/01/28 02:33:01, akalin wrote: > > +jar for ...
8 years, 11 months ago (2012-01-28 02:43:15 UTC) #3
jar (doing other things)
https://chromiumcodereview.appspot.com/9232069/diff/1003/base/memory/ref_counted.h File base/memory/ref_counted.h (right): https://chromiumcodereview.appspot.com/9232069/diff/1003/base/memory/ref_counted.h#newcode249 base/memory/ref_counted.h:249: assert(ptr_ != NULL); Could you clarify when this would ...
8 years, 11 months ago (2012-01-28 02:47:22 UTC) #4
akalin
On 2012/01/28 02:47:22, jar wrote: > https://chromiumcodereview.appspot.com/9232069/diff/1003/base/memory/ref_counted.h > File base/memory/ref_counted.h (right): > > https://chromiumcodereview.appspot.com/9232069/diff/1003/base/memory/ref_counted.h#newcode249 > ...
8 years, 11 months ago (2012-01-28 03:06:47 UTC) #5
jar (doing other things)
lgtm
8 years, 10 months ago (2012-01-30 20:36:46 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/9232069/1003
8 years, 10 months ago (2012-01-30 21:00:11 UTC) #7
commit-bot: I haz the power
Try job failure for 9232069-1003 (retry) on win_rel for step "ui_tests". It's a second try, ...
8 years, 10 months ago (2012-01-31 00:17:21 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/9232069/1003
8 years, 10 months ago (2012-01-31 00:19:51 UTC) #9
commit-bot: I haz the power
8 years, 10 months ago (2012-01-31 02:16:57 UTC) #10
Change committed as 119820

Powered by Google App Engine
This is Rietveld 408576698