-
Notifications
You must be signed in to change notification settings - Fork 885
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DanglingPtr] Remove
ProfileMenuViewBase
patching (#26499)
This patch was introduced as a temporary measure to allow switching on the dangling pointer detector. This PR fixes the two dangling pointers in `ProfileMenuViewBase` by avoiding calling `SetProfileIdentityInfo` more than once, and actually overriding it, so the first call to the `SetProfileIdentityInfo` can be given the correct arguments. One test had to be disabled, as it was not actually testing the way the profile menu viewer was being instantiated. The way brave does it requires to consult theme data, which is not available for this particular test. Resolves brave/brave-browser#42231
- Loading branch information
1 parent
28923ae
commit d9d98f7
Showing
4 changed files
with
9 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters