refactor(extensions): break load warnings into newlines (#25358)

This commit is contained in:
Samuel Maddock 2020-09-09 22:39:45 -04:00 committed by GitHub
parent a829ae56b2
commit 1815b95e74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,9 +52,9 @@ std::pair<scoped_refptr<const Extension>, std::string> LoadUnpacked(
// Log warnings. // Log warnings.
if (extension->install_warnings().size()) { if (extension->install_warnings().size()) {
warnings += "Warnings loading extension at " + warnings += "Warnings loading extension at " +
base::UTF16ToUTF8(extension_dir.LossyDisplayName()) + ": "; base::UTF16ToUTF8(extension_dir.LossyDisplayName()) + ":\n";
for (const auto& warning : extension->install_warnings()) { for (const auto& warning : extension->install_warnings()) {
warnings += warning.message + " "; warnings += " " + warning.message + "\n";
} }
} }