New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 609136 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Sep 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS , Mac
Pri: 3
Type: Task



Sign in to add a comment

DCHECK when ObjCPropertyReleaser doesn't find any properties

Project Member Reported by jif@chromium.org, May 4 2016

Issue description

On iOS we got rid of all properties in main_controller.mm, but forgot to remove the ObjCPropertyReleaser.

In order to prevent omissions like these, can we add a DCHECK in ObjCPropertyReleaser's destructor making sure it is only used in class that actually do contain properties?
 

Comment 1 by jif@chromium.org, May 4 2016

Labels: Hotlist-TechnicalDebt
Test CL at https://codereview.chromium.org/1961013002

Note that Chrome immediately DCHECKs easily then :)
In a first step, instead of DCHECK, I'd log the class name and run all our tests.

Then the logs would list most offenders and we would need to clean it up before actually DCHECKing.

Comment 3 Deleted

Comment 4 by jif@chromium.org, May 9 2016

The test CL looks good.
Now we need to fix Chromium OS X/iOS :)
Components: Internals
Cc: jif@chromium.org
Labels: -Type-Bug Type-Task
The only place where ObjCPropertyReleaser is used is HandoffManager, which is shared between Mac and iOS. Do we still care about fixing this issue?

Comment 7 by jif@chromium.org, Sep 13 2017

Status: WontFix (was: Available)
Nope, and I'm actually disappointed that ObjCPropertyReleaser is still used on iOS.

Sign in to add a comment