Remove uses of deprecated RegisterListPref

The override of RegisterListPref taking a std::unique_ptr<base::Value>
is deprecated in favor of the method taking the base::Value by value.

Convert client code to either not pass default value if the value is just
an empty list (as there is an override doing this). If the list is not
empty, convert the code to create and pass it by value.

This CL was uploaded by git cl split.

Bug: 646113
Change-Id: I9103ac9560fb3a48fc36f5ff674f47228bce7eb0
Reviewed-on: https://chromium-review.googlesource.com/c/1454368
Auto-Submit: Sylvain Defresne <sdefresne@chromium.org>
Reviewed-by: Gabriel Charette <gab@chromium.org>
Commit-Queue: Gabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#629209}
2 files changed