Add DCHECKs to base::Value Path API

This change adds DCHECKs to the base::Value Path API to prevent mis-use.
Ideally this checks should be static asserts, but this is currently not
easily do-able.

Bug: 646113
Change-Id: I04700486d41a425a1b75c0fdd93f21da7009e05a
Reviewed-on: https://chromium-review.googlesource.com/735860
Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org>
Reviewed-by: Brett Wilson <brettw@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#512171}

CrOS-Libchrome-Original-Commit: 8deeec251491d65464e3423fb7de744711690cc3
2 files changed
tree: bfed660056f311dcb0bb0b4eb103e7e57e1a69ba
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/