Fix communication with autofill server on iOS

This CL restores the communication of Chrome on iOS with the Autofill
server. It broke by commit fc59bb21057d0a077f421157e9bc2d2a8c3208e1
which assigned trusted_params to the network request. However, the
URLLoaderFactory originated from BrowserState and was therefore shared
and not trusted. As per the documentaiton of trusted_params:
"Setting these from an untrusted URLLoader will cause the request to
fail."

This CL removes the trusted_params to bring Autofill back to a working
situation. Maybe the iOS or network stack folks can see whether
we want to have special URLLoaderFactories for components on iOS.
I don't see a precedence for that.

(cherry picked from commit 87d33b5b6575a12367605d29fe7fbf8c85a7bfd0)
[email protected]

Bug: 1031136
Change-Id: Ic2e04f37f3a30e8adb98e23f19205be09fa5375a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1953707
Reviewed-by: Matt Menke <[email protected]>
Reviewed-by: Olivier Robin <[email protected]>
Commit-Queue: Dominic Battré <[email protected]>
Cr-Original-Commit-Position: refs/heads/master@{#722493}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1969337
Reviewed-by: Dominic Battré <[email protected]>
Cr-Commit-Position: refs/branch-heads/3987@{#154}
Cr-Branched-From: c4e8da9871cc266be74481e212f3a5252972509d-refs/heads/master@{#722274}
1 file changed