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..f7885910e5e6cda478464a7acd75ef5b4aadbd09 100644 |
| --- a/chrome/browser/android/vr_shell/textures/ui_texture.cc |
| +++ b/chrome/browser/android/vr_shell/textures/ui_texture.cc |
| @@ -196,8 +196,10 @@ bool UiTexture::GetFontList(int size, |
| if (name.empty()) |
|
mthiesse
2017/06/08 01:13:18
Did you forget the main fix? ;)
|
| names.insert(name); |
| } |
| - for (const auto& name : names) |
| + for (const auto& name : names) { |
| + DCHECK(!name.empty()); |
| fonts.push_back(gfx::Font(name, size)); |
| + } |
| *font_list = gfx::FontList(fonts); |
| return true; |
| } |