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

Issue 170183002: Oilpan: Build fix after r167288 (Closed)

Created:
6 years, 10 months ago by haraken
Modified:
6 years, 10 months ago
Reviewers:
tkent, oilpan-reviews
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org
Visibility:
Public.

Description

Oilpan: Build fix after r167288 r167288 broke oilpan's build: http://chromegw.corp.google.com/i/chromium.webkit/builders/WebKit%252520Linux%252520Oilpan/builds/991/steps/compile/logs/stdio#error1 This CL fixes the build by replacing nullptr with 0. TBR=tkent Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167307

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M Source/core/inspector/InspectorDOMStorageAgent.cpp View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
haraken
Committed patchset #1 manually as r167307 (presubmit successful).
6 years, 10 months ago (2014-02-18 06:43:49 UTC) #1
tkent
lgtm
6 years, 10 months ago (2014-02-18 06:47:38 UTC) #2
philipj_slow
This broke compilation on Mac: ../../third_party/WebKit/Source/core/inspector/InspectorDOMStorageAgent.cpp:204:16: error: conversion function from 'int' to 'PassOwnPtrWillBeRawPtr<WebCore::StorageArea>' (aka 'WTF::PassOwnPtr<WebCore::StorageArea>') ...
6 years, 10 months ago (2014-02-18 07:22:43 UTC) #3
haraken
On 2014/02/18 07:22:43, philipj wrote: > This broke compilation on Mac: > > ../../third_party/WebKit/Source/core/inspector/InspectorDOMStorageAgent.cpp:204:16: > ...
6 years, 10 months ago (2014-02-18 07:27:17 UTC) #4
haraken
6 years, 10 months ago (2014-02-18 07:30:11 UTC) #5
Message was sent while issue was closed.
On 2014/02/18 07:27:17, haraken wrote:
> On 2014/02/18 07:22:43, philipj wrote:
> > This broke compilation on Mac:
> > 
> >
>
../../third_party/WebKit/Source/core/inspector/InspectorDOMStorageAgent.cpp:204:16:
> > error: conversion function from 'int' to
> > 'PassOwnPtrWillBeRawPtr<WebCore::StorageArea>' (aka
> > 'WTF::PassOwnPtr<WebCore::StorageArea>') invokes a deleted function
> >         return 0;
> >                ^
> > ../../third_party/WebKit/Source/wtf/PassOwnPtr.h:41:45: note: 'PassOwnPtr'
has
> > been explicitly marked deleted here
> >         WTF_DISALLOW_CONSTRUCTION_FROM_ZERO(PassOwnPtr);
> >                                             ^
> > ../../third_party/WebKit/Source/wtf/NullPtr.h:59:9: note: expanded from
macro
> > 'WTF_DISALLOW_CONSTRUCTION_FROM_ZERO'
> >         ClassName(int) = delete
> >         ^
> >
>
../../third_party/WebKit/Source/core/inspector/InspectorDOMStorageAgent.cpp:211:16:
> > error: conversion function from 'int' to
> > 'PassOwnPtrWillBeRawPtr<WebCore::StorageArea>' (aka
> > 'WTF::PassOwnPtr<WebCore::StorageArea>') invokes a deleted function
> >         return 0;
> >                ^
> > ../../third_party/WebKit/Source/wtf/PassOwnPtr.h:41:45: note: 'PassOwnPtr'
has
> > been explicitly marked deleted here
> >         WTF_DISALLOW_CONSTRUCTION_FROM_ZERO(PassOwnPtr);
> >                                             ^
> > ../../third_party/WebKit/Source/wtf/NullPtr.h:59:9: note: expanded from
macro
> > 'WTF_DISALLOW_CONSTRUCTION_FROM_ZERO'
> >         ClassName(int) = delete
> >         ^
> 
> The problem here is that OwnPtr expects nullptr but RawPtr expects 0. So
> PassOwnPtrWillBeRawPtr causes the problem whether it returns nullptr or 0.
> 
> I think this needs a substantial fix, so let me revert the CLs that caused the
> problem.

Reverted in r167310

Powered by Google App Engine
This is Rietveld 408576698