Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[M-67] Add check for failure to initialize UdevWatcher
When udev fails to initialize UdevWatcher::StartWatching will return nullptr. This checks for that case (preventing a crash) and leaves the UsbService in a good state even when it is incapable of enumerating devices. Bug: 840243 Change-Id: I3d251daa79178e1ea7e924e2fe9afaf7ff3d16a7 Reviewed-on: https://chromium-review.googlesource.com/1048033 Reviewed-by: Jun Cai <juncai@chromium.org> Commit-Queue: Reilly Grant <reillyg@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#556537}(cherry picked from commit 3d72841) Reviewed-on: https://chromium-review.googlesource.com/1048365 Reviewed-by: Reilly Grant <reillyg@chromium.org> Cr-Commit-Position: refs/branch-heads/3396@{#505} Cr-Branched-From: 9ef2aa8-refs/heads/master@{#550428}
- Loading branch information