Replace assert by explicit throw new AssertionError

Calling assert if shared RELRO config is illegal will not
catch this error, because assertions are generally inactive.
Replace assert with a log and explict throw AssertionError.

Shared RELRO config is a compile-time constant. It can only
be made illegal through serious coding error.

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

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


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