[CodeHealth] Remove uses of ListValue::begin()/end() in /dbus.

This CL removes calls to these deprecated member functions. It also
converts to the newer "for" loop syntax when possible, along with
other minor cleanup.

This CL was uploaded by git cl split.

R=satorux@chromium.org

Bug: 1187107
Change-Id: I6a7a39dc479265bef7c6df50b6805e61dffcceb0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2877403
Auto-Submit: David Bertoni <dbertoni@chromium.org>
Reviewed-by: Satoru Takabayashi <satorux@chromium.org>
Commit-Queue: Satoru Takabayashi <satorux@chromium.org>
Cr-Commit-Position: refs/heads/master@{#880159}
NOKEYCHECK=True
GitOrigin-RevId: c11e2c67c390b19253ae027a798bf5bd60c1f631
1 file changed