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

Issue 1456843002: Finch experiment: auto-detect text encoding (Closed)

Created:
5 years, 1 month ago by Jinsuk Kim
Modified:
5 years ago
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, kinuko+watch, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Finch experiment: auto-detect text encoding Experiment b/518968 aims to measure the impact of turning on auto-encoding detection on Chrome on Android by default. - Adds methods that tell us if: 1) auto-encoding detection was attempted, due to lacking encoding information from meta tag, header, BOM, etc. 2) auto-encoding detection successfully detected a new encoding which is different from a default one, hence would show the page being browsed which would otherwise have shown garbled text. - Selectively turns on text encoding auto-detection by default for experiment group. - Uploads histogram data on the auto-detection logic triggering rate and encoding method detected by the logic. The CL will be reverted once the experiment is finished. BUG=518968 Committed: https://crrev.com/35a1421d891beb357d5e29cf3f5fb553f436e055 Cr-Commit-Position: refs/heads/master@{#363716}

Patch Set 1 #

Total comments: 4

Patch Set 2 : addressed comments #

Patch Set 3 : merged with the cl using the new methods #

Total comments: 4

Patch Set 4 : addressed comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -8 lines) Patch
M chrome/browser/ui/prefs/prefs_tab_helper.cc View 1 2 3 3 chunks +13 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/Document.h View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DocumentEncodingData.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DocumentEncodingData.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/TextResourceDecoder.h View 3 chunks +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/TextResourceDecoder.cpp View 4 chunks +12 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/web/WebDocument.cpp View 1 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 2 chunks +75 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebDocument.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 2 chunks +64 lines, -0 lines 2 comments Download

Messages

Total messages: 44 (15 generated)
Jinsuk Kim
5 years, 1 month ago (2015-11-18 01:53:23 UTC) #2
Theresa
lgtm
5 years, 1 month ago (2015-11-18 18:38:34 UTC) #3
Jinsuk Kim
Thanks for the review! Alex, would you help me find right people (in Blink team) ...
5 years, 1 month ago (2015-11-18 23:12:36 UTC) #4
aelias_OOO_until_Jul13
esphehn@ might be appropriate OWNER as this patch is mainly about plumbing some info through ...
5 years, 1 month ago (2015-11-19 01:28:39 UTC) #6
Jinsuk Kim
On 2015/11/19 01:28:39, aelias wrote: > esphehn@ might be appropriate OWNER as this patch is ...
5 years, 1 month ago (2015-11-19 01:38:53 UTC) #8
aelias_OOO_until_Jul13
Elliot, quick ping for review, in case this fell off your list of things. (BTW, ...
5 years ago (2015-11-24 22:10:22 UTC) #9
aelias_OOO_until_Jul13
Adding tkent@ for OWNERS since Elliot doesn't seem to have the cycles.
5 years ago (2015-12-01 01:11:38 UTC) #11
tkent
lgtm https://codereview.chromium.org/1456843002/diff/1/third_party/WebKit/Source/core/dom/DocumentEncodingData.h File third_party/WebKit/Source/core/dom/DocumentEncodingData.h (right): https://codereview.chromium.org/1456843002/diff/1/third_party/WebKit/Source/core/dom/DocumentEncodingData.h#newcode53 third_party/WebKit/Source/core/dom/DocumentEncodingData.h:53: private: nit: add a blink line before |private:|. ...
5 years ago (2015-12-01 01:18:02 UTC) #12
Jinsuk Kim
Thanks for the review! https://codereview.chromium.org/1456843002/diff/1/third_party/WebKit/Source/core/dom/DocumentEncodingData.h File third_party/WebKit/Source/core/dom/DocumentEncodingData.h (right): https://codereview.chromium.org/1456843002/diff/1/third_party/WebKit/Source/core/dom/DocumentEncodingData.h#newcode53 third_party/WebKit/Source/core/dom/DocumentEncodingData.h:53: private: On 2015/12/01 01:18:02, tkent ...
5 years ago (2015-12-01 02:13:52 UTC) #13
esprehn
This needs tests, how long is this experiment too? What release will you remove it?
5 years ago (2015-12-01 03:19:10 UTC) #15
Jinsuk Kim
On 2015/12/01 03:19:10, esprehn wrote: > This needs tests, how long is this experiment too? ...
5 years ago (2015-12-01 03:48:47 UTC) #16
Jinsuk Kim
On 2015/12/01 03:19:10, esprehn wrote: > This needs tests, how long is this experiment too? ...
5 years ago (2015-12-01 03:48:48 UTC) #17
esprehn
What do you plan to do with this data? Is it just to record an ...
5 years ago (2015-12-01 18:55:34 UTC) #18
Jinsuk Kim
On 2015/12/01 18:55:34, esprehn wrote: > What do you plan to do with this data? ...
5 years ago (2015-12-01 20:26:37 UTC) #19
esprehn
On 2015/12/01 at 20:26:37, jinsukkim wrote: > On 2015/12/01 18:55:34, esprehn wrote: > > What ...
5 years ago (2015-12-01 20:33:21 UTC) #20
Jinsuk Kim
On 2015/12/01 20:33:21, esprehn wrote: > You just linked this patch again, what's the right ...
5 years ago (2015-12-01 21:07:27 UTC) #21
Jinsuk Kim
5 years ago (2015-12-02 09:46:03 UTC) #23
battre
chrome/browser/ui/prefs/prefs_tab_helper.cc LGTM with comment https://codereview.chromium.org/1456843002/diff/40001/chrome/browser/ui/prefs/prefs_tab_helper.cc File chrome/browser/ui/prefs/prefs_tab_helper.cc (right): https://codereview.chromium.org/1456843002/diff/40001/chrome/browser/ui/prefs/prefs_tab_helper.cc#newcode323 chrome/browser/ui/prefs/prefs_tab_helper.cc:323: bool IsAutodetectEncodingEnabled() { nit: Should ...
5 years ago (2015-12-02 13:08:26 UTC) #25
Jinsuk Kim
Thanks for the review! Will add tests in a follow-up CL. https://codereview.chromium.org/1456843002/diff/40001/chrome/browser/ui/prefs/prefs_tab_helper.cc File chrome/browser/ui/prefs/prefs_tab_helper.cc (right): ...
5 years ago (2015-12-02 23:14:38 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1456843002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1456843002/60001
5 years ago (2015-12-03 22:47:08 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
5 years ago (2015-12-04 00:53:23 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1456843002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1456843002/60001
5 years ago (2015-12-04 04:43:47 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/124915)
5 years ago (2015-12-04 04:52:43 UTC) #35
jwd
histograms lgtm. https://codereview.chromium.org/1456843002/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1456843002/diff/60001/tools/metrics/histograms/histograms.xml#newcode58044 tools/metrics/histograms/histograms.xml:58044: +<enum name="EncodingMethod" type="int"> Alternatively, you could hash ...
5 years ago (2015-12-07 23:43:08 UTC) #36
Jinsuk Kim
Thanks for the review! https://codereview.chromium.org/1456843002/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1456843002/diff/60001/tools/metrics/histograms/histograms.xml#newcode58044 tools/metrics/histograms/histograms.xml:58044: +<enum name="EncodingMethod" type="int"> On 2015/12/07 ...
5 years ago (2015-12-08 00:09:42 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1456843002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1456843002/60001
5 years ago (2015-12-08 01:08:23 UTC) #39
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years ago (2015-12-08 02:43:52 UTC) #41
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/35a1421d891beb357d5e29cf3f5fb553f436e055 Cr-Commit-Position: refs/heads/master@{#363716}
5 years ago (2015-12-08 02:44:51 UTC) #43
falken
5 years ago (2015-12-08 04:11:04 UTC) #44
Message was sent while issue was closed.
On 2015/12/08 02:44:51, commit-bot: I haz the power wrote:
> Patchset 4 (id:??) landed as
> https://crrev.com/35a1421d891beb357d5e29cf3f5fb553f436e055
> Cr-Commit-Position: refs/heads/master@{#363716}

It looks like this broke Linux MSAN:
https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20MSAN
https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20MSAN/b...

STDERR: ==11==WARNING: MemorySanitizer: use-of-uninitialized-value
STDERR:     #0 0x7fa20c129553 in operator!=
third_party/WebKit/Source/core/dom/DocumentEncodingData.h:70:9
STDERR:     #1 0x7fa20c129553 in updateDocument
third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp:157:0
STDERR:     #2 0x7fa20c1296ef in appendRawBytesFromMainThread
third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp:131:5

Powered by Google App Engine
This is Rietveld 408576698