Bug 59666

Summary: Enable strict OwnPtrs for Chromium
Product: WebKit Reporter: Adam Barth <abarth>
Component: New BugsAssignee: Adam Barth <abarth>
Status: RESOLVED FIXED    
Severity: Normal CC: dglazkov, jamesr, levin, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   
Bug Depends on: 59664    
Bug Blocks: 59428    
Attachments:
Description Flags
Patch none

Adam Barth
Reported 2011-04-27 18:24:16 PDT
Enable strict OwnPtrs for Chromium
Attachments
Patch (971 bytes, patch)
2011-04-27 18:24 PDT, Adam Barth
no flags
Adam Barth
Comment 1 2011-04-27 18:24:31 PDT
Adam Barth
Comment 2 2011-04-27 18:25:03 PDT
Should build cleanly on Mac, but jamesr says it doesn't build cleanly on Linux.
David Levin
Comment 3 2011-04-27 18:26:19 PDT
Comment on attachment 91397 [details] Patch Pending clean build of course.
James Robinson
Comment 4 2011-04-27 18:27:06 PDT
https://bugs.webkit.org/show_bug.cgi?id=59664 is needed for chromium linux. I haven't tried chromium win, but I'm sure there are issues there as well.
WebKit Review Bot
Comment 5 2011-04-27 18:48:05 PDT
Adam Barth
Comment 6 2011-04-27 18:55:22 PDT
I don't have a chromium-win build. I'll probably land this late at night and fire-fight the bot, unless someone would like to volunteer to weed out these issues on windows.
James Robinson
Comment 8 2011-04-27 19:39:26 PDT
Tryjobs all failed to apply the patch. Try specifying -r to git/gcl try.
David Levin
Comment 9 2011-04-27 19:47:23 PDT
(In reply to comment #8) > Tryjobs all failed to apply the patch. Try specifying -r to git/gcl try. I'm not sure if that would help because I think that specifies chromium's revision and the problem is webkit's revision (maybe if I ran it from the subdir and then I wouldn't have to update DEPS?) Anyway, I modified the patch so that it won't conflict with the other patch that is on the webkit side (http://build.chromium.org/p/tryserver.chromium/builders/linux/builds/23959/steps/update/logs/patch) and I think this will work now: http://build.chromium.org/p/tryserver.chromium/builders/win/builds/28765 http://build.chromium.org/p/tryserver.chromium/builders/linux/builds/23959 http://build.chromium.org/p/tryserver.chromium/builders/mac/builds/24460
Adam Barth
Comment 10 2011-04-27 23:04:28 PDT
Those try results don't really make sense. It's reporting errors in functions that have #define LOOSE_OWN_PTR at the top.
David Levin
Comment 11 2011-04-27 23:15:41 PDT
(In reply to comment #10) > Those try results don't really make sense. It's reporting errors in functions that have #define LOOSE_OWN_PTR at the top. oh that has to do with how I finally got the patch to apply: http://build.chromium.org/p/tryserver.chromium/builders/linux/builds/23959/steps/update/logs/patch The reason I had to do this was a bit involved. (I was patching before your first change to OwnPtr.h but rolling to after it -- I didn't think of this issue or I could have handled it differently.)
Adam Barth
Comment 12 2011-04-27 23:21:20 PDT
In any case, the windows results are helpful. :)
Adam Barth
Comment 13 2011-04-27 23:31:34 PDT
Ok. I've fixed the error that the Windows try bot uncovered. The Mac trybot also uncovered an error that I don't see in my upstream Chromium build. Perhaps the feature is only enabled downstream? In any case, I fixed it as well. I'm going to try landing this patch with my fingers crossed. I expect disaster.
Adam Barth
Comment 14 2011-04-27 23:35:48 PDT
Comment on attachment 91397 [details] Patch Clearing flags on attachment: 91397 Committed r85167: <http://trac.webkit.org/changeset/85167>
Adam Barth
Comment 15 2011-04-27 23:35:52 PDT
All reviewed patches have been landed. Closing bug.
Adam Barth
Comment 16 2011-04-28 00:10:08 PDT
Looks like it built cleanly on chromium-win. Thanks Mr. Levin!
Note You need to log in before you can comment on or make changes to this bug.