Chromium Code Reviews| Index: chrome/browser/android/vr_shell/textures/ui_texture.cc |
| diff --git a/chrome/browser/android/vr_shell/textures/ui_texture.cc b/chrome/browser/android/vr_shell/textures/ui_texture.cc |
| index ef2630dbb34568416757eba26f6961b21d3647ed..8216da5d0c1d62c1bd3021a451f717e9a01ae0fa 100644 |
| --- a/chrome/browser/android/vr_shell/textures/ui_texture.cc |
| +++ b/chrome/browser/android/vr_shell/textures/ui_texture.cc |
| @@ -193,11 +193,13 @@ bool UiTexture::GetFontList(int size, |
| bool found_name = GetFallbackFontNameForChar(default_font, c, "", &name); |
| if (!found_name) |
| return false; |
| - if (name.empty()) |
| + if (!name.empty()) |
| names.insert(name); |
| } |
| - for (const auto& name : names) |
| + for (const auto& name : names) { |
| + DCHECK(!name.empty()); |
|
cjgrant
2017/06/08 01:41:15
This DCHECK will lead a lonely life. :)
|
| fonts.push_back(gfx::Font(name, size)); |
| + } |
| *font_list = gfx::FontList(fonts); |
| return true; |
| } |