Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Unified Diff: chrome/browser/android/vr_shell/textures/ui_texture.cc

Issue 2924043003: [vr] Fix incorrect negation in font fallback logic. (Closed)
Patch Set: add a unit test. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/textures/url_bar_texture_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/textures/url_bar_texture_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698