[Sync] Change metadata parameter to unique pointer

In this CL we first change the signature of AddMetadata to receive a
unique_ptr. In a subsequent CL we will eliminate the unnecessary copy
by changing the metadata_map_ key type to a unique_ptr as well.

Bug: 914396
Change-Id: Ic476f6208538b299c2bba9b9eb0662b8694b1da6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1550466
Reviewed-by: Jan Krcal <jkrcal@chromium.org>
Reviewed-by: Parastoo Geranmayeh <parastoog@google.com>
Reviewed-by: Vadym Doroshenko <dvadym@chromium.org>
Commit-Queue: Victor Vianna <victorvianna@google.com>
Cr-Commit-Position: refs/heads/master@{#648619}
8 files changed