Make error panel items set default text
When a panel item is set to an error type, the primary text can wrap to 2 lines and the secondary text should not be shown. Change the error panel initialization to set the primary text to a default generic error string, and the secondary text to blank. Adds unit test to confirm the expected behaviour. Bug: 1021307 Tests: browser_tests --gtest_filter=FileManagerJsTest.FilesDisplayPanel Change-Id: Id9251b9cfae3050dc6fd8005c214d920f6173a44 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1904562 Commit-Queue: Alex Danilo <adanilo@chromium.org> Reviewed-by:Luciano Pacheco <lucmult@chromium.org> Cr-Commit-Position: refs/heads/master@{#713729}
Showing
Please register or sign in to comment