Index: ui/gfx/pango_util.h |
diff --git a/ui/gfx/pango_util.h b/ui/gfx/pango_util.h |
index 7815fd9095299ad832a8341cde72c94930c959a1..e194b0a4688877dc534727f1ce54e52584f6eb9e 100644 |
--- a/ui/gfx/pango_util.h |
+++ b/ui/gfx/pango_util.h |
@@ -26,6 +26,11 @@ class ScopedPangoFontDescription { |
DCHECK(description); |
} |
+ explicit ScopedPangoFontDescription(const std::string& str) |
+ : description_(pango_font_description_from_string(str.c_str())) { |
+ DCHECK(description_); |
+ } |
+ |
~ScopedPangoFontDescription() { |
pango_font_description_free(description_); |
} |