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

Unified Diff: content/app/content_main_runner.cc

Issue 317833006: [ICU] Avoid reading ICU data files in render process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
Index: content/app/content_main_runner.cc
diff --git a/content/app/content_main_runner.cc b/content/app/content_main_runner.cc
index 8c767321132a4e139bebbc9c7303906a1dda3410..285cd1ba9e4702bcd2882e78070b6f85598795eb 100644
--- a/content/app/content_main_runner.cc
+++ b/content/app/content_main_runner.cc
@@ -702,8 +702,13 @@ class ContentMainRunnerImpl : public ContentMainRunner {
ui::RegisterPathProvider();
RegisterPathProvider();
RegisterContentSchemes(true);
-
+#if defined(OS_ANDROID)
+ // If delegate_ exists, ICU is initialized in delegate_->PreSandboxStartup()
+ if (!delegate_)
+ CHECK(base::i18n::InitializeICU());
+#else
CHECK(base::i18n::InitializeICU());
+#endif
InitializeStatsTable(command_line);
« chrome/browser/chrome_content_browser_client.cc ('K') | « chrome/common/descriptors_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698