Commit 2b50f082 authored by Maksim Ivanov's avatar Maksim Ivanov Committed by Commit Bot

policy_fuzzer: Initialize ICU

Fix the spurious crash in the policy_fuzzer caused by missing ICU
initialization.

The ICU functionality is used by one of the fuzzer policy handlers.

Bug: 1092058
Change-Id: Ic93a61e9d4f9b7cc51d464582e7a42e262442152
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2232943Reviewed-by: default avatarSergey Poromov <poromov@chromium.org>
Commit-Queue: Maksim Ivanov <emaxx@chromium.org>
Cr-Commit-Position: refs/heads/master@{#776030}
parent 556163f2
......@@ -7,6 +7,7 @@
#include "base/check_op.h"
#include "base/command_line.h"
#include "base/files/scoped_temp_dir.h"
#include "base/i18n/icu_util.h"
#include "base/logging.h"
#include "base/memory/weak_ptr.h"
#include "base/path_service.h"
......@@ -42,6 +43,7 @@ struct Environment {
CHECK(scoped_temp_dir.CreateUniqueTempDir());
CHECK(base::PathService::Override(chrome::DIR_USER_DATA,
scoped_temp_dir.GetPath()));
CHECK(base::i18n::InitializeICU());
}
base::ScopedTempDir scoped_temp_dir;
......
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