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

Issue 1305973011: Change assert() to DCHECK() in scoped_ptr.h (Closed)

Created:
5 years, 3 months ago by blundell
Modified:
5 years, 2 months ago
Reviewers:
danakj, dcheng
CC:
chromium-reviews, gavinp+memory_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change assert() to DCHECK() in scoped_ptr.h The motivation for making this change is that Chromium's CQ tests run in release mode with DCHECK() turned on but assert() compiled out. For more context, see https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/IIkOmt66zEc.

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebase + test fixes #

Patch Set 3 : Add //base dependencies as experiment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -10 lines) Patch
M base/memory/scoped_ptr.h View 5 chunks +6 lines, -6 lines 0 comments Download
M base/memory/scoped_ptr_unittest.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M chrome_elf/chrome_elf.gyp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M remoting/remoting_host_mac.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
blundell
5 years, 3 months ago (2015-09-03 16:14:35 UTC) #2
blundell
Whoops, turns out it's not that simple. Will look at failures tomorrow.
5 years, 3 months ago (2015-09-03 17:04:18 UTC) #3
dcheng
As I recall, Blink pulls in this header. Pulling in logging.h into this header causes ...
5 years, 3 months ago (2015-09-03 17:15:10 UTC) #4
danakj
https://codereview.chromium.org/1305973011/diff/1/base/memory/scoped_ptr.h File base/memory/scoped_ptr.h (right): https://codereview.chromium.org/1305973011/diff/1/base/memory/scoped_ptr.h#newcode91 base/memory/scoped_ptr.h:91: #include "base/logging.h" This will include logging in a lot ...
5 years, 3 months ago (2015-09-03 17:16:27 UTC) #5
danakj
On 2015/09/03 17:16:27, danakj wrote: > https://codereview.chromium.org/1305973011/diff/1/base/memory/scoped_ptr.h > File base/memory/scoped_ptr.h (right): > > https://codereview.chromium.org/1305973011/diff/1/base/memory/scoped_ptr.h#newcode91 > ...
5 years, 3 months ago (2015-09-03 17:57:26 UTC) #6
blundell
On 2015/09/03 17:57:26, danakj wrote: > On 2015/09/03 17:16:27, danakj wrote: > > https://codereview.chromium.org/1305973011/diff/1/base/memory/scoped_ptr.h > ...
5 years, 3 months ago (2015-09-04 09:14:43 UTC) #7
danakj
5 years, 3 months ago (2015-09-04 18:07:15 UTC) #8
On Fri, Sep 4, 2015 at 2:14 AM, <blundell@chromium.org> wrote:

> On 2015/09/03 17:57:26, danakj wrote:
>
>> On 2015/09/03 17:16:27, danakj wrote:
>> >
>> https://codereview.chromium.org/1305973011/diff/1/base/memory/scoped_ptr.h
>> > File base/memory/scoped_ptr.h (right):
>> >
>> >
>>
>
>
>
https://codereview.chromium.org/1305973011/diff/1/base/memory/scoped_ptr.h#ne...
>
>> > base/memory/scoped_ptr.h:91: #include "base/logging.h"
>> > This will include logging in a lot of places. Does LOG still conflict
>> with
>> blink
>> > macros?
>>
>
> Oh apparently that is fixed :D. And one of the scoped_ptr unit tests
>> DCHECKs
>> lol.
>>
>
> As I added to the chromium-dev@ thread, I think that in the end this
> patch might
> still not be workable due to it adding a dependency from
> //third_party/WebKit to
> //base.
>

Blink shouldn't be using base, Jeremy has nicely removed that use of
scoped_ptr in blink.


>
> https://codereview.chromium.org/1305973011/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698