[Mac] Fix download item text sometimes being misaligned.
There's two possible stable values for |titleY_|, kPrimaryTextPosTop - when status message is visible, kPrimaryTextOnlyPosTop - when status message is not visible. There was an inconistency how this was being initialized - as isStatusTextVisible_ was being set to NO but the value was set to kPrimaryTextPosTop. The text would then be misaligned if the code would take the -hideSecondaryTitle in -setStateFromDownload:. This CL fixes the issue and updates the test to check this. BUG=484848 Review URL: https://codereview.chromium.org/1130903004 Cr-Commit-Position: refs/heads/master@{#329305}
Showing
Please register or sign in to comment