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

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

Issue 2902393002: [vr] Bail on unhandled code points. (Closed)
Patch Set: . Created 3 years, 7 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
Index: chrome/browser/android/vr_shell/textures/exit_warning_texture.cc
diff --git a/chrome/browser/android/vr_shell/textures/exit_warning_texture.cc b/chrome/browser/android/vr_shell/textures/exit_warning_texture.cc
index 866b694fcd8f9ad4d4a71c82a2abc57a39acb6d2..f3bdf5ab8e630cecc06cfcb5329e8c7d74209ff4 100644
--- a/chrome/browser/android/vr_shell/textures/exit_warning_texture.cc
+++ b/chrome/browser/android/vr_shell/textures/exit_warning_texture.cc
@@ -43,7 +43,8 @@ void ExitWarningTexture::Draw(SkCanvas* sk_canvas,
paint.setColor(kBackgroundColor);
auto text =
l10n_util::GetStringUTF16(IDS_PAGE_INFO_VR_BROWSER_UNSUPPORTED_MODE);
- auto fonts = GetFontList(size_.width() * kFontSizeFactor, text);
+ gfx::FontList fonts;
+ GetFontList(size_.width() * kFontSizeFactor, text, &fonts);
gfx::Rect text_size(size_.width() * kTextWidthFactor, 0);
std::vector<std::unique_ptr<gfx::RenderText>> lines =

Powered by Google App Engine
This is Rietveld 408576698