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

Issue 137023014: Added ScopedNSAutoreleasePool to RenderViewTest. (Closed)

Created:
6 years, 10 months ago by tasak
Modified:
6 years, 10 months ago
Reviewers:
Avi (use Gerrit), Nico
CC:
chromium-reviews, Kunihiko Sakamoto, dglazkov
Visibility:
Public.

Description

Added ScopedNSAutoreleasePool to RenderViewTest. If Blink checks font metrics during some browser_test (e.g. PrintLayoutTest), Blink might allocates CFString by using Mac allocator, and the CFString might have a reference to StringImpl allocated by FastMalloc. So we should invoke Mac decallocator before destroying Blink instance. If we don't, browser_tests will crash. BUG=305885, 336756 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249043

Patch Set 1 #

Patch Set 2 : Moved autorelease pool to RenderViewTest #

Total comments: 6

Patch Set 3 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -0 lines) Patch
M content/public/test/render_view_test.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/test/render_view_test.cc View 1 2 3 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
tasak
6 years, 10 months ago (2014-01-29 04:16:45 UTC) #1
tasak
Would you review this CL?
6 years, 10 months ago (2014-01-31 11:49:52 UTC) #2
Nico
Can you put this in RenderViewTest instead?
6 years, 10 months ago (2014-02-03 20:12:57 UTC) #3
tasak
On 2014/02/03 20:12:57, Nico wrote: > Can you put this in RenderViewTest instead? Sure. Done.
6 years, 10 months ago (2014-02-04 05:01:37 UTC) #4
Nico
https://codereview.chromium.org/137023014/diff/30001/content/public/test/render_view_test.cc File content/public/test/render_view_test.cc (right): https://codereview.chromium.org/137023014/diff/30001/content/public/test/render_view_test.cc#newcode221 content/public/test/render_view_test.cc:221: autorelease_pool_.reset(NULL); Is this necessary? The destructor will run this ...
6 years, 10 months ago (2014-02-04 16:12:51 UTC) #5
tasak
Thank you for reviewing. https://codereview.chromium.org/137023014/diff/30001/content/public/test/render_view_test.cc File content/public/test/render_view_test.cc (right): https://codereview.chromium.org/137023014/diff/30001/content/public/test/render_view_test.cc#newcode221 content/public/test/render_view_test.cc:221: autorelease_pool_.reset(NULL); On 2014/02/04 16:12:51, Nico ...
6 years, 10 months ago (2014-02-05 04:23:02 UTC) #6
Nico
lgtm Thanks for explaining, and for your patience! https://codereview.chromium.org/137023014/diff/30001/content/public/test/render_view_test.cc File content/public/test/render_view_test.cc (right): https://codereview.chromium.org/137023014/diff/30001/content/public/test/render_view_test.cc#newcode221 content/public/test/render_view_test.cc:221: autorelease_pool_.reset(NULL); ...
6 years, 10 months ago (2014-02-05 04:58:22 UTC) #7
tasak
Thank you for reviewing. https://codereview.chromium.org/137023014/diff/30001/content/public/test/render_view_test.cc File content/public/test/render_view_test.cc (right): https://codereview.chromium.org/137023014/diff/30001/content/public/test/render_view_test.cc#newcode221 content/public/test/render_view_test.cc:221: autorelease_pool_.reset(NULL); On 2014/02/05 04:58:22, Nico ...
6 years, 10 months ago (2014-02-05 05:16:02 UTC) #8
tasak
The CQ bit was checked by tasak@google.com
6 years, 10 months ago (2014-02-05 05:16:13 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tasak@google.com/137023014/190001
6 years, 10 months ago (2014-02-05 05:20:06 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-05 06:05:05 UTC) #11
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=48184
6 years, 10 months ago (2014-02-05 06:05:05 UTC) #12
Nico
+avi for content/OWNERS
6 years, 10 months ago (2014-02-05 06:11:20 UTC) #13
tasak
On 2014/02/05 06:11:20, Nico wrote: > +avi for content/OWNERS Thank you.
6 years, 10 months ago (2014-02-05 06:12:15 UTC) #14
Avi (use Gerrit)
On 2014/02/05 06:12:15, tasak wrote: > On 2014/02/05 06:11:20, Nico wrote: > > +avi for ...
6 years, 10 months ago (2014-02-05 15:59:38 UTC) #15
Nico
The CQ bit was checked by thakis@chromium.org
6 years, 10 months ago (2014-02-05 16:00:37 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tasak@google.com/137023014/190001
6 years, 10 months ago (2014-02-05 16:02:12 UTC) #17
commit-bot: I haz the power
6 years, 10 months ago (2014-02-05 17:50:42 UTC) #18
Message was sent while issue was closed.
Change committed as 249043

Powered by Google App Engine
This is Rietveld 408576698