Commit f911cd27 authored by Alexander Alekseev's avatar Alexander Alekseev Committed by Commit Bot

ChromeOS: Fix FATAL:variations_service.cc(428)

This CL replaces CHECK with DCHECK to prevent fatal failures in the wild.

TBR=asvitkine@chromium.org

Bug: 910833
Change-Id: I070339cb47506b2b6823b9d3f8e4a7b06fc310ff
Reviewed-on: https://chromium-review.googlesource.com/c/1357919Reviewed-by: default avatarAlexander Alekseev <alemate@chromium.org>
Commit-Queue: Alexander Alekseev <alemate@chromium.org>
Cr-Commit-Position: refs/heads/master@{#613314}
parent e2513d16
......@@ -422,10 +422,15 @@ GURL VariationsService::GetVariationsServerURL(HttpOptions http_options) {
}
void VariationsService::EnsureLocaleEquals(const std::string& locale) {
#if defined(OS_CHROMEOS)
// Chrome OS may switch language on the fly.
DCHECK_EQ(locale, field_trial_creator_.application_locale());
#else
// Uses a CHECK rather than a DCHECK to ensure that issues are caught since
// problems in this area may only appear in the wild due to official builds
// and end user machines.
CHECK_EQ(locale, field_trial_creator_.application_locale());
#endif
}
// static
......
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