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

Issue 1477733003: Replace xmllite with libxml in autofill (Closed)

Created:
5 years ago by vabr (Chromium)
Modified:
5 years ago
CC:
chromium-reviews, droger+watchlist_chromium.org, rouslan+autofill_chromium.org, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, browser-components-watch_chromium.org, jdonnelly+autofillwatch_chromium.org, bondd+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@556433_remove_dead_code
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace xmllite with libxml in autofill This CL switches the XML parsing and writing code from using xmllite to libxml. Other mentionable changes: * UTF-8 encoding is dropped from the generated XML prolog. UTF8 is the default [1]. * Tests are changed to drop any expectations about the parsed data if the parser signals an error. This conforms with how parsing is and should be used in production. * Some const string references in arguments were changed to value passing, to make use of the now allowed std::move. [1] http://www.w3schools.com/xml/xml_syntax.asp BUG=556433 TBR=isherman@chromium.org Committed: https://crrev.com/efef7d0416f2797495e381a20358314b33b34eb0 Cr-Commit-Position: refs/heads/master@{#361862}

Patch Set 1 #

Patch Set 2 : Fix tests + git cl lint #

Patch Set 3 : Fix browser tests #

Total comments: 6

Patch Set 4 : Add <utility>, a TODO and a newline #

Patch Set 5 : Just rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+629 lines, -705 lines) Patch
M chrome/browser/autofill/autofill_server_browsertest.cc View 1 2 4 chunks +6 lines, -6 lines 0 comments Download
M components/autofill.gypi View 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/BUILD.gn View 2 chunks +1 line, -2 lines 0 comments Download
M components/autofill/core/browser/DEPS View 1 chunk +1 line, -2 lines 0 comments Download
M components/autofill/core/browser/autofill_download_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/autofill_download_manager.cc View 1 2 3 4 chunks +7 lines, -8 lines 0 comments Download
M components/autofill/core/browser/autofill_download_manager_unittest.cc View 1 2 3 7 chunks +11 lines, -10 lines 0 comments Download
M components/autofill/core/browser/autofill_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/autofill_manager.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/autofill/core/browser/autofill_xml_parser.h View 2 chunks +21 lines, -105 lines 0 comments Download
M components/autofill/core/browser/autofill_xml_parser.cc View 1 2 3 1 chunk +86 lines, -123 lines 0 comments Download
M components/autofill/core/browser/autofill_xml_parser_unittest.cc View 1 2 3 11 chunks +18 lines, -40 lines 0 comments Download
M components/autofill/core/browser/form_structure.h View 1 3 chunks +10 lines, -4 lines 0 comments Download
M components/autofill/core/browser/form_structure.cc View 1 2 3 12 chunks +151 lines, -111 lines 0 comments Download
M components/autofill/core/browser/form_structure_unittest.cc View 1 30 chunks +312 lines, -289 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
vabr (Chromium)
Hi Mathieu, Could I bother you with yet another CL today? Thanks! Vaclav
5 years ago (2015-11-25 16:57:19 UTC) #2
vabr (Chromium)
Scott, Could you review adding "+third_party/libxml" to components/autofill/core/browser/DEPS? Thanks! Vaclav
5 years ago (2015-11-25 16:58:48 UTC) #4
scottmg
+deps lgtm
5 years ago (2015-11-25 17:55:41 UTC) #5
Mathieu
lgtm with a few nits. Thanks for doing this work! https://codereview.chromium.org/1477733003/diff/40001/components/autofill/core/browser/autofill_xml_parser.cc File components/autofill/core/browser/autofill_xml_parser.cc (right): https://codereview.chromium.org/1477733003/diff/40001/components/autofill/core/browser/autofill_xml_parser.cc#newcode7 ...
5 years ago (2015-11-25 17:59:10 UTC) #6
vabr (Chromium)
Thanks, Mathieu, for the review! I addressed your comments, and will be landing soon. Cheers, ...
5 years ago (2015-11-26 09:36:12 UTC) #7
vabr (Chromium)
Ilya, I'm going to TBR you for chrome/browser/autofill/autofill_server_browsertest.cc, based on the following: * The change ...
5 years ago (2015-11-26 09:45:23 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1477733003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1477733003/80001
5 years ago (2015-11-26 09:46:48 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years ago (2015-11-26 10:12:54 UTC) #15
sdefresne
On 2015/11/26 at 10:12:54, commit-bot wrote: > Committed patchset #5 (id:80001) Thanks a lot for ...
5 years ago (2015-11-26 10:13:30 UTC) #16
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/efef7d0416f2797495e381a20358314b33b34eb0 Cr-Commit-Position: refs/heads/master@{#361862}
5 years ago (2015-11-26 10:13:58 UTC) #18
vabr (Chromium)
5 years ago (2015-11-26 10:40:10 UTC) #19
Message was sent while issue was closed.
On 2015/11/26 10:13:30, sdefresne wrote:
> On 2015/11/26 at 10:12:54, commit-bot wrote:
> > Committed patchset #5 (id:80001)
> 
> Thanks a lot for taking care of that migration!

My pleasure! :) Thanks for pointing this xml dependency out, and your
consultation on the bug!

Powered by Google App Engine
This is Rietveld 408576698