base/threading: restrict to set only current thread priority

On some platforms, e.g., Linux, changing other thread's priority is not
permitted by sandbox mechanisms for a security reason.
Since there are no real use cases that really need to change another thread's
priority for now, I'll replace the base API with the one that change the
current thread priority to avoid confusion.

BUG=468793,505474
TEST=base_unittests
TEST=sudo base_unittests --gtest_filter='Thread*'
TEST=git cl try

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

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


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