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

Issue 2949673002: Settings EG Test Autorelease Fix

Created:
3 years, 6 months ago by PL
Modified:
3 years, 5 months ago
CC:
chromium-reviews, marq+watch_chromium.org, ios-reviews+chrome_chromium.org, noyau+watch_chromium.org, ios-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Settings EG Test Autorelease Fix Moving other code to ARC (https://codereview.chromium.org/2916473002/) has caused some changes in what objects are autoreleased. This can cause objects to live longer than some tests expect and trip DCHECKs. This change uses an autoreleasepool to ensure that autoreleased objects are no longer in a pool when the test comes to an end. An alternative would be to remove the failing DCHECK altogether as it is debateable as to whether issues like this should be worked around at all. I have run all of the other tests in ios_chrome_settings_egtests_module with success. BUG=None Test=None

Patch Set 1 #

Patch Set 2 : Alternative fix #

Patch Set 3 : Remove DCHECKs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -12 lines) Patch
M ios/web/web_state/ui/wk_web_view_configuration_provider.mm View 1 2 1 chunk +0 lines, -12 lines 0 comments Download

Messages

Total messages: 29 (12 generated)
PL
On 2017/06/19 23:01:03, commit-bot: I haz the power wrote: > Dry run: CQ is trying ...
3 years, 6 months ago (2017-06-19 23:17:10 UTC) #5
PL
On 2017/06/19 23:17:10, PL wrote: > On 2017/06/19 23:01:03, commit-bot: I haz the power wrote: ...
3 years, 6 months ago (2017-06-19 23:18:53 UTC) #6
PL
- gchatz Sylvain, I think I need your guidance here. Thank you!
3 years, 6 months ago (2017-06-23 01:27:10 UTC) #8
sdefresne
On 2017/06/23 01:27:10, PL wrote: > - gchatz > > Sylvain, I think I need ...
3 years, 6 months ago (2017-06-23 16:28:33 UTC) #11
sdefresne
I think we should just remove the DCHECK. As discussed there is no guarantee that ...
3 years, 6 months ago (2017-06-23 17:03:18 UTC) #14
PL
On 2017/06/23 17:03:18, sdefresne wrote: > I think we should just remove the DCHECK. As ...
3 years, 5 months ago (2017-06-29 16:59:05 UTC) #15
PL
+ Rohit (in case he's available first) Once we have this fixed we can arc-ify ...
3 years, 5 months ago (2017-06-30 17:11:01 UTC) #17
rohitrao (ping after 24h)
Do you know why why added these DCHECKs in the first place? What happens if ...
3 years, 5 months ago (2017-06-30 17:16:13 UTC) #19
PL
On 2017/06/30 17:16:13, rohitrao (ping after 24h) wrote: > Do you know why why added ...
3 years, 5 months ago (2017-06-30 17:22:00 UTC) #20
Eugene But (OOO till 7-30)
> I don't know how negative the impact of these objects being alive after a ...
3 years, 5 months ago (2017-06-30 17:27:31 UTC) #21
PL
On 2017/06/30 17:27:31, Eugene But wrote: > > I don't know how negative the impact ...
3 years, 5 months ago (2017-06-30 17:29:21 UTC) #22
Eugene But (OOO till 7-30)
On 2017/06/30 17:29:21, PL wrote: > On 2017/06/30 17:27:31, Eugene But wrote: > > > ...
3 years, 5 months ago (2017-06-30 17:47:54 UTC) #23
rohitrao (ping after 24h)
In this case, it seems like the ARC conversion is just exposing the underlying issue. ...
3 years, 5 months ago (2017-06-30 17:50:04 UTC) #24
Eugene But (OOO till 7-30)
On 2017/06/30 17:50:04, rohitrao (ping after 24h) wrote: > In this case, it seems like ...
3 years, 5 months ago (2017-06-30 18:10:05 UTC) #25
Eugene But (OOO till 7-30)
Sorry, I was wrong. Purging configuration is needed for clearing visited links, and it is ...
3 years, 5 months ago (2017-07-08 01:18:06 UTC) #26
sdefresne
lgtm Please fix description before landing to say that those DCHECK cannot work with ARC ...
3 years, 5 months ago (2017-07-10 09:19:18 UTC) #27
stkhapugin
3 years, 5 months ago (2017-07-13 11:36:01 UTC) #29
Since Peter unfortunately can't look at this at the moment, I've started
https://chromium-review.googlesource.com/c/569965/ with an up-to-date
description.

Powered by Google App Engine
This is Rietveld 408576698