| Index: ui/gfx/platform_font_pango.cc
|
| diff --git a/ui/gfx/platform_font_pango.cc b/ui/gfx/platform_font_pango.cc
|
| index 503782908e3b7eeac5f8d310cf3a2b4f810c1718..be5aabe473b56ccc780f284e0d7f19c38699c225 100644
|
| --- a/ui/gfx/platform_font_pango.cc
|
| +++ b/ui/gfx/platform_font_pango.cc
|
| @@ -101,6 +101,9 @@ std::string GetDefaultFont() {
|
| #endif // defined(OS_CHROMEOS)
|
| #else
|
| GtkSettings* settings = gtk_settings_get_default();
|
| + if (settings == NULL) { // Probably caused by sandbox, give a default.
|
| + return "sans 10";
|
| + }
|
|
|
| gchar* font_name = NULL;
|
| g_object_get(settings, "gtk-font-name", &font_name, NULL);
|
|
|