Commit 06cc97ef authored by Tibor Dusnoki's avatar Tibor Dusnoki Committed by Commit Bot

[Addressinput] Assign getSortKey() return value

Assigned return value of getSortKey() to sort_key_size variable as it was before.
related patch: https://chromium-review.googlesource.com/c/chromium/src/+/1592677

Bug: 1056603
Change-Id: I979ef2416fcc428546148f6a7874ab61d9269b34
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2078014Reviewed-by: default avatarRouslan Solomakhin <rouslan@chromium.org>
Reviewed-by: default avatarParastoo Geranmayeh <parastoog@google.com>
Commit-Queue: Parastoo Geranmayeh <parastoog@google.com>
Cr-Commit-Position: refs/heads/master@{#745124}
parent 6f50bdff
......@@ -259,7 +259,7 @@ const std::vector<uint8_t>& InputSuggester::StringCanonicalizer::Canonicalize(
static_cast<int32_t>(original.length()));
int32_t sort_key_size = 0;
if (collator_)
collator_->getSortKey(icu_str, &buffer_[0], buffer_size());
sort_key_size = collator_->getSortKey(icu_str, &buffer_[0], buffer_size());
DCHECK_LT(0, sort_key_size);
if (sort_key_size > buffer_size()) {
......
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