bluetooth-advertising: Fix wrong assignment and append of wrong type

The assignment statements where flipped so service data was always null.

Also the wrong function was being used to append to the writer which
caused chrome to crash.

BUG=525313

Review URL: https://codereview.chromium.org/1317933003

Cr-Commit-Position: refs/heads/master@{#346555}


CrOS-Libchrome-Original-Commit: 945c90df408fc010d5e56e0768881d26e451adad
1 file changed
tree: 3653cc3b932fad0558ed9c333ebea71751b9e59f
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/