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

Unified Diff: components/font_service/public/cpp/font_loader.cc

Issue 1341073004: Fix bug in shut down of HTMLViewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 2 trunk Created 5 years, 3 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
« no previous file with comments | « components/font_service/public/cpp/font_loader.h ('k') | components/html_viewer/global_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « components/font_service/public/cpp/font_loader.h ('k') | components/html_viewer/global_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698