Index: components/font_service/public/cpp/font_loader.cc |
diff --git a/components/font_service/public/cpp/font_loader.cc b/components/font_service/public/cpp/font_loader.cc |
index c7886a77727c7cf65f531f263462113b1888c1a3..840f2982cbb59e426447bc4e8e14085b426b9a19 100644 |
--- a/components/font_service/public/cpp/font_loader.cc |
+++ b/components/font_service/public/cpp/font_loader.cc |
@@ -39,6 +39,11 @@ FontLoader::FontLoader(mojo::ApplicationImpl* application_impl) { |
FontLoader::~FontLoader() {} |
+void FontLoader::Shutdown() { |
+ thread_->Stop(); |
+ thread_ = nullptr; |
+} |
+ |
bool FontLoader::matchFamilyName(const char family_name[], |
SkTypeface::Style requested, |
FontIdentity* out_font_identifier, |