diff --git a/content_handler/BUILD.gn b/content_handler/BUILD.gn index f6291d8b7579bbf5bb9f2fa0511641f3ecedd512..6dfa624415e54a3cbd62dfd0b3ee93cb6179c040 100644 --- a/content_handler/BUILD.gn +++ b/content_handler/BUILD.gn @@ -33,6 +33,7 @@ executable("content_handler") { deps = [ "//application/lib/app", + "//apps/icu_data/lib", "//apps/mozart/lib/skia:vmo", "//apps/mozart/services/buffers", "//apps/mozart/services/buffers/cpp", diff --git a/content_handler/app.cc b/content_handler/app.cc index b7c3239db0948cce7abe4b5bed16d806f44ff450..fdb089f291e6ddcbfcce44c19968c5c3a8d369ac 100644 --- a/content_handler/app.cc +++ b/content_handler/app.cc @@ -7,6 +7,7 @@ #include #include +#include "apps/icu_data/lib/icu_data.h" #include "apps/tracing/lib/trace/provider.h" #include "flutter/common/settings.h" #include "flutter/common/threads.h" @@ -46,6 +47,11 @@ App::App() { ui_task_runner, // UI io_task_runner // IO )); + + if (!icu_data::Initialize(context_->environment_services().get())) { + FTL_LOG(ERROR) << "Could not initialize ICU data."; + } + blink::Settings settings; settings.enable_observatory = true; blink::Settings::Set(settings); @@ -61,6 +67,7 @@ App::App() { } App::~App() { + icu_data::Release(); blink::Threads::Gpu()->PostTask(QuitMessageLoop); blink::Threads::IO()->PostTask(QuitMessageLoop); }