Add timeout for usb charging commands.

Also check that we are root, as non rooted cannot control usb charging.

BUG=375178
R=tonyg@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271670 0039d316-1c4b-4281-b951-d872f2087c98


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