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

Unified Diff: mojo/runner/context.cc

Issue 1425853003: mandoline: Fix ICU initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to tot Created 5 years, 1 month 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
Index: mojo/runner/context.cc
diff --git a/mojo/runner/context.cc b/mojo/runner/context.cc
index e4819a77e84374f5871ed7addd5ffe8224a7a99f..6ba3e233c2c0624612a8a7fd92485e6fc7db2910 100644
--- a/mojo/runner/context.cc
+++ b/mojo/runner/context.cc
@@ -9,6 +9,7 @@
#include "base/bind.h"
#include "base/command_line.h"
#include "base/files/file_path.h"
+#include "base/i18n/icu_util.h"
#include "base/lazy_instance.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
@@ -192,6 +193,10 @@ bool Context::Init() {
const base::CommandLine& command_line =
*base::CommandLine::ForCurrentProcess();
+ // ICU data is a thing every part of the system needs. This here warms
+ // up the copy of ICU in the mojo runner.
+ base::i18n::InitializeICU();
+
EnsureEmbedderIsInitialized();
task_runners_.reset(
new TaskRunners(base::MessageLoop::current()->task_runner()));

Powered by Google App Engine
This is Rietveld 408576698