Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Issue 1457393003: [Autofill] Guard against the initialization failure of ICU Collator. (Closed)

Created:
5 years, 1 month ago by Mathieu
Modified:
5 years ago
CC:
chromium-reviews, rouslan+autofill_chromium.org, browser-components-watch_chromium.org, jdonnelly+autofillwatch_chromium.org, bondd+autofillwatch_chromium.org, asvitkine+watch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, jshin+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Autofill] Guard against the initialization failure of ICU Collator. Some crashes have been seen in the wild on Android devices. We now guard against initialization error, and track the failures in a histogram, which allow for locale slicing. According to the web it is not unseen to have ICU Locales return bogus values, but hopefully we can track it down further. BUG=548365 Committed: https://crrev.com/2e4d8173e148558f60fe90143613bfeefbcc7896 Cr-Commit-Position: refs/heads/master@{#362212}

Patch Set 1 : Initial #

Total comments: 14

Patch Set 2 : addressed comments #

Total comments: 8

Patch Set 3 : moved tests to their own file #

Patch Set 4 : rebase #

Patch Set 5 : fix UBool compile error #

Total comments: 3

Patch Set 6 : UBool #

Total comments: 7

Patch Set 7 : addressed comments #

Patch Set 8 : English locale as fallback #

Total comments: 8

Patch Set 9 : accepted rewrite #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -6 lines) Patch
M components/autofill/core/common/BUILD.gn View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M components/autofill/core/common/autofill_l10n_util.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M components/autofill/core/common/autofill_l10n_util.cc View 1 2 3 4 5 6 7 8 2 chunks +33 lines, -6 lines 0 comments Download
A components/autofill/core/common/autofill_l10n_util_unittest.cc View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (9 generated)
Mathieu
Hi Ilya, Please have a look! https://codereview.chromium.org/1457393003/diff/20001/components/autofill/core/common/autofill_l10n_util.cc File components/autofill/core/common/autofill_l10n_util.cc (right): https://codereview.chromium.org/1457393003/diff/20001/components/autofill/core/common/autofill_l10n_util.cc#newcode25 components/autofill/core/common/autofill_l10n_util.cc:25: UMA_HISTOGRAM_BOOLEAN("Autofill.IcuCollatorCreationSuccess", success); I ...
5 years, 1 month ago (2015-11-19 20:50:51 UTC) #3
Ilya Sherman
https://codereview.chromium.org/1457393003/diff/20001/components/autofill/core/common/autofill_l10n_util.cc File components/autofill/core/common/autofill_l10n_util.cc (right): https://codereview.chromium.org/1457393003/diff/20001/components/autofill/core/common/autofill_l10n_util.cc#newcode19 components/autofill/core/common/autofill_l10n_util.cc:19: // wild on Android devices). Please add a crbug ...
5 years, 1 month ago (2015-11-19 21:04:06 UTC) #4
Mathieu
Thanks, PTAL. https://codereview.chromium.org/1457393003/diff/20001/components/autofill/core/common/autofill_l10n_util.cc File components/autofill/core/common/autofill_l10n_util.cc (right): https://codereview.chromium.org/1457393003/diff/20001/components/autofill/core/common/autofill_l10n_util.cc#newcode19 components/autofill/core/common/autofill_l10n_util.cc:19: // wild on Android devices). On 2015/11/19 ...
5 years, 1 month ago (2015-11-19 21:53:02 UTC) #5
Ilya Sherman
https://codereview.chromium.org/1457393003/diff/20001/components/autofill/core/common/autofill_l10n_util.cc File components/autofill/core/common/autofill_l10n_util.cc (right): https://codereview.chromium.org/1457393003/diff/20001/components/autofill/core/common/autofill_l10n_util.cc#newcode21 components/autofill/core/common/autofill_l10n_util.cc:21: DCHECK(success); On 2015/11/19 21:53:01, Mathieu Perreault wrote: > On ...
5 years, 1 month ago (2015-11-19 22:31:20 UTC) #6
Ilya Sherman
https://codereview.chromium.org/1457393003/diff/40001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1457393003/diff/40001/tools/metrics/histograms/histograms.xml#newcode2224 tools/metrics/histograms/histograms.xml:2224: +<histogram name="Autofill.IcuCollatorCreationSuccess" enum="BooleanSuccess"> Optional nit: A BooleanCreated with labels ...
5 years, 1 month ago (2015-11-19 22:31:54 UTC) #7
Mathieu
PTAL. Having weird issues with mac_chromium_gn_rel ("steps" failing) which hopefully resolve themselves soon :) https://codereview.chromium.org/1457393003/diff/20001/components/autofill/core/common/autofill_l10n_util.cc ...
5 years, 1 month ago (2015-11-20 16:19:38 UTC) #10
Mathieu
https://codereview.chromium.org/1457393003/diff/160001/components/autofill/core/common/autofill_l10n_util.cc File components/autofill/core/common/autofill_l10n_util.cc (right): https://codereview.chromium.org/1457393003/diff/160001/components/autofill/core/common/autofill_l10n_util.cc#newcode24 components/autofill/core/common/autofill_l10n_util.cc:24: bool success = U_SUCCESS(error) ? true : false; This ...
5 years, 1 month ago (2015-11-20 18:40:46 UTC) #12
Evan Stade
https://codereview.chromium.org/1457393003/diff/160001/components/autofill/core/common/autofill_l10n_util.cc File components/autofill/core/common/autofill_l10n_util.cc (right): https://codereview.chromium.org/1457393003/diff/160001/components/autofill/core/common/autofill_l10n_util.cc#newcode24 components/autofill/core/common/autofill_l10n_util.cc:24: bool success = U_SUCCESS(error) ? true : false; On ...
5 years, 1 month ago (2015-11-20 19:49:47 UTC) #14
Mathieu
Thanks, I used !! and sent it to the bots https://codereview.chromium.org/1457393003/diff/160001/components/autofill/core/common/autofill_l10n_util.cc File components/autofill/core/common/autofill_l10n_util.cc (right): https://codereview.chromium.org/1457393003/diff/160001/components/autofill/core/common/autofill_l10n_util.cc#newcode24 ...
5 years, 1 month ago (2015-11-20 21:16:42 UTC) #15
Evan Stade
https://codereview.chromium.org/1457393003/diff/170001/components/autofill/core/common/autofill_l10n_util.cc File components/autofill/core/common/autofill_l10n_util.cc (right): https://codereview.chromium.org/1457393003/diff/170001/components/autofill/core/common/autofill_l10n_util.cc#newcode42 components/autofill/core/common/autofill_l10n_util.cc:42: if (collator_.get()) { don't need .get() https://codereview.chromium.org/1457393003/diff/170001/components/autofill/core/common/autofill_l10n_util.cc#newcode46 components/autofill/core/common/autofill_l10n_util.cc:46: return ...
5 years, 1 month ago (2015-11-20 21:57:20 UTC) #16
Ilya Sherman
LGTM % the comment below, and Evan's comments. https://codereview.chromium.org/1457393003/diff/170001/components/autofill/core/common/autofill_l10n_util.cc File components/autofill/core/common/autofill_l10n_util.cc (right): https://codereview.chromium.org/1457393003/diff/170001/components/autofill/core/common/autofill_l10n_util.cc#newcode31 components/autofill/core/common/autofill_l10n_util.cc:31: << ...
5 years, 1 month ago (2015-11-20 22:33:14 UTC) #17
Mathieu
Thanks, PTAL https://codereview.chromium.org/1457393003/diff/170001/components/autofill/core/common/autofill_l10n_util.cc File components/autofill/core/common/autofill_l10n_util.cc (right): https://codereview.chromium.org/1457393003/diff/170001/components/autofill/core/common/autofill_l10n_util.cc#newcode31 components/autofill/core/common/autofill_l10n_util.cc:31: << "CaseInsensitiveCompare."; On 2015/11/20 22:33:13, Ilya Sherman ...
5 years, 1 month ago (2015-11-22 15:17:27 UTC) #18
Mathieu
On 2015/11/22 15:17:27, Mathieu Perreault wrote: > Thanks, PTAL > > https://codereview.chromium.org/1457393003/diff/170001/components/autofill/core/common/autofill_l10n_util.cc > File components/autofill/core/common/autofill_l10n_util.cc ...
5 years ago (2015-11-24 20:18:20 UTC) #19
Mathieu
On 2015/11/22 15:17:27, Mathieu Perreault wrote: > Thanks, PTAL > > https://codereview.chromium.org/1457393003/diff/170001/components/autofill/core/common/autofill_l10n_util.cc > File components/autofill/core/common/autofill_l10n_util.cc ...
5 years ago (2015-11-24 20:18:31 UTC) #20
Evan Stade
https://codereview.chromium.org/1457393003/diff/170001/components/autofill/core/common/autofill_l10n_util.cc File components/autofill/core/common/autofill_l10n_util.cc (right): https://codereview.chromium.org/1457393003/diff/170001/components/autofill/core/common/autofill_l10n_util.cc#newcode46 components/autofill/core/common/autofill_l10n_util.cc:46: return lhs == rhs; On 2015/11/22 15:17:27, Mathieu Perreault ...
5 years ago (2015-11-24 23:45:43 UTC) #21
Mathieu
On 2015/11/24 23:45:43, Evan Stade wrote: > https://codereview.chromium.org/1457393003/diff/170001/components/autofill/core/common/autofill_l10n_util.cc > File components/autofill/core/common/autofill_l10n_util.cc (right): > > https://codereview.chromium.org/1457393003/diff/170001/components/autofill/core/common/autofill_l10n_util.cc#newcode46 ...
5 years ago (2015-11-25 00:44:26 UTC) #22
Evan Stade
On 2015/11/25 00:44:26, Mathieu Perreault wrote: > On 2015/11/24 23:45:43, Evan Stade wrote: > > ...
5 years ago (2015-11-25 00:56:47 UTC) #23
Mathieu
Evan please have a look
5 years ago (2015-11-25 19:55:02 UTC) #24
Evan Stade
https://codereview.chromium.org/1457393003/diff/210001/components/autofill/core/common/autofill_l10n_util.cc File components/autofill/core/common/autofill_l10n_util.cc (right): https://codereview.chromium.org/1457393003/diff/210001/components/autofill/core/common/autofill_l10n_util.cc#newcode22 components/autofill/core/common/autofill_l10n_util.cc:22: // wild on Android devices). In the failure case, ...
5 years ago (2015-11-25 20:05:46 UTC) #25
Evan Stade
https://codereview.chromium.org/1457393003/diff/210001/components/autofill/core/common/autofill_l10n_util.cc File components/autofill/core/common/autofill_l10n_util.cc (right): https://codereview.chromium.org/1457393003/diff/210001/components/autofill/core/common/autofill_l10n_util.cc#newcode35 components/autofill/core/common/autofill_l10n_util.cc:35: icu_54::UnicodeString name; can you inline |name|?
5 years ago (2015-11-25 20:06:59 UTC) #26
Mathieu
ptal https://codereview.chromium.org/1457393003/diff/210001/components/autofill/core/common/autofill_l10n_util.cc File components/autofill/core/common/autofill_l10n_util.cc (right): https://codereview.chromium.org/1457393003/diff/210001/components/autofill/core/common/autofill_l10n_util.cc#newcode22 components/autofill/core/common/autofill_l10n_util.cc:22: // wild on Android devices). In the failure ...
5 years ago (2015-11-27 01:05:28 UTC) #27
Evan Stade
lgtm
5 years ago (2015-11-30 18:47:55 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1457393003/230001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1457393003/230001
5 years ago (2015-11-30 18:52:39 UTC) #31
commit-bot: I haz the power
Committed patchset #9 (id:230001)
5 years ago (2015-11-30 20:28:58 UTC) #32
commit-bot: I haz the power
5 years ago (2015-11-30 20:29:55 UTC) #34
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/2e4d8173e148558f60fe90143613bfeefbcc7896
Cr-Commit-Position: refs/heads/master@{#362212}

Powered by Google App Engine
This is Rietveld 408576698