Remove 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 Review URL: https://codereview.chromium.org/969683003 Cr-Commit-Position: refs/heads/master@{#318911}
Showing
Please register or sign in to comment