Commit 13d3a822 authored by Bo Liu's avatar Bo Liu Committed by Commit Bot

aw: Set icu locale in renderers

Bug: 895871
Change-Id: Idb6d382891affa99a4976e3e8b83efd1b437e5b6
Reviewed-on: https://chromium-review.googlesource.com/c/1292396Reviewed-by: default avatarChangwan Ryu <changwan@chromium.org>
Commit-Queue: Bo <boliu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#601353}
parent facbfb9a
......@@ -25,6 +25,7 @@
#include "base/command_line.h"
#include "base/cpu.h"
#include "base/i18n/icu_util.h"
#include "base/i18n/rtl.h"
#include "base/lazy_instance.h"
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
......@@ -51,6 +52,7 @@
#include "media/base/media_switches.h"
#include "media/media_buildflags.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/ui_base_switches.h"
#include "ui/events/gesture_detection/gesture_configuration.h"
#if BUILDFLAG(ENABLE_SPELLCHECK)
......@@ -225,6 +227,10 @@ void AwMainDelegate::PreSandboxStartup() {
const base::CommandLine& command_line =
*base::CommandLine::ForCurrentProcess();
const std::string locale = command_line.GetSwitchValueASCII(switches::kLang);
base::i18n::SetICUDefaultLocale(locale);
std::string process_type =
command_line.GetSwitchValueASCII(switches::kProcessType);
int crash_signal_fd = -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment