DescriptionRemove unnecessary variable, the creation of which can cause a crash.
The NSFont object could be nil, which would have a NULL font name, which when
converted to a std::string would cause a crash. The font name is already in the
FontDescriptor, so it's entirely unnecessary.
BUG=452651
R=avi@chromium.org
Committed: https://crrev.com/b92cea6dc0d441a54574b1e17c1b82e265fd4463
Cr-Commit-Position: refs/heads/master@{#318911}
Patch Set 1 #
Messages
Total messages: 6 (1 generated)
|