Attention needed from Kentaro Hara, Omer Katz and Tomek Jurkiewicz
Andreas Haas added 1 comment![Open in Gerrit]()
Patchset-level comments
File-level comment, Patchset 10:
Tomek Jurkiewicz .
resolvedHey,
Can you be a more specific, why c/r/supervised_user is elected to use weak cell? This change looks like it's introducing weak cell, and immediately makes only one specific error page to use it.
Andreas HaasIn https://crrev.com/c/6703729, `SupervisedUserErrorPageController` was migrated to a more secure implementation of `gin::Wrappable`. As part of this migration, `SupervisedUserErrorPageController` became an oilpan object, i.e. its memory is managed by a GC. Due to that, `base::WeakPtrFactory` is not allowed to be used anymore. This change should have already been done as part of the original migration, but it was missed.
`gin::WeakCellFactory` is the Oilpan equivalent to `base::WeakPtrFactory`.
Tomek JurkiewiczI see, thanks.
But I think my argument is still valid; that's two changes in one CL. Do you think you could split out infra change from supervised user change?
Andreas Haas
Open in GerritRelated details
Attention is currently required from:
- Kentaro Hara
- Omer Katz
- Tomek Jurkiewicz
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Iaad5df2dc893e78652d019df4613f86a473e2d6f
Gerrit-Change-Number: 6811186
Gerrit-PatchSet: 10
Gerrit-CC: gwsq
Gerrit-Comment-Date: Fri, 08 Aug 2025 09:18:12 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No