Chromium Code Reviews| Index: ui/gfx/pango_util.h |
| diff --git a/ui/gfx/pango_util.h b/ui/gfx/pango_util.h |
| index 7815fd9095299ad832a8341cde72c94930c959a1..c17bdb4606ea86a6f7170fb0d4dd526e6410924d 100644 |
| --- a/ui/gfx/pango_util.h |
| +++ b/ui/gfx/pango_util.h |
| @@ -26,6 +26,10 @@ class ScopedPangoFontDescription { |
| DCHECK(description); |
| } |
| + explicit ScopedPangoFontDescription(const std::string& str) { |
| + description_ = pango_font_description_from_string(str.c_str()); |
|
msw
2014/07/18 20:31:39
nit: can this be done in an initializer list?
Daniel Erat
2014/07/18 20:35:04
yep!
|
| + } |
| + |
| ~ScopedPangoFontDescription() { |
| pango_font_description_free(description_); |
| } |