Commit 30c287a1 authored by Michael Crouse's avatar Michael Crouse Committed by Chromium LUCI CQ

Fix MSAN error in LanguageDetection.

Initializes varible in case model is not available.

Bug: 1158539
Change-Id: I00587372d9ae185b6840a514da2363c1fe7b971d
TBR: megjablon@chromium.org
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2590588
Commit-Queue: Michael Crouse <mcrouse@chromium.org>
Auto-Submit: Michael Crouse <mcrouse@chromium.org>
Reviewed-by: default avatarAleks Totic <atotic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#836834}
parent cc42a219
......@@ -111,7 +111,7 @@ void TranslateAgent::PageCaptured(const base::string16& contents) {
std::string content_language = web_detection_details.content_language.Utf8();
std::string html_lang = web_detection_details.html_language.Utf8();
std::string model_detected_language;
bool is_model_reliable;
bool is_model_reliable = false;
std::string language;
if (translate::IsTFLiteLanguageDetectionEnabled()) {
......
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