Omer, can you please do an expert review?
Kentaro, can you please do an owner review?
static_cast<blink::Visitor*>(visitor)->Trace(weak_factory_);
Andreas HaasWhy do you need this cast? `blink::Visitor` should be an alias of `cppgc::Visitor`.
Done
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
LGTM
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Georg, can you please do an owner review of chrome/*
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Sorry, I'm owner only for ash refactoring related stuff. Assiging to supervised_user owners.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Reviewer source(s):
t...@google.com is from context(googleclient/chrome/chromium_gwsq/chrome/browser/supervised_user/config.gwsq)
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Hey,
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.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Hey,
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.
In 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`.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Andreas HaasHey,
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.
In 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`.
I 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?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |