commit | 160ece0201fd4737da6a7ec509f7bab7218ac9e0 | [log] [tgz] |
---|---|---|
author | khmel <[email protected]> | Mon Aug 21 22:39:44 2017 |
committer | Commit Bot <[email protected]> | Mon Aug 21 22:39:44 2017 |
tree | 55a49a0f153a982e2ebe691589fe0d3a2d7c46df | |
parent | b2f9da1122b900f97b281d17a42084ffe15765c2 [diff] |
arc: Make PAI flow error resistant. PAI is started during the initial ARC boot. However it might be the case when PAI is not triggered due user logs out earlier, crash or other conditions. PAI may be alse locked until assistant completes. This makes PAI starter fragile and in cases described above PAI might not be executed on device at all. This CL introduces the flag that indicates that PAI was started for this device and we will start PAI on next user login if this is required. This also adds extra protection to assistant flow that would release lock if something goes wrong. As side refactoring, PAI lock manipulations are moved to one class to make logic clear. cases PAI was finally called. Added extra unit tests. Bug: b/63765408 Test: various test cases on device, simulated different errors. In all Change-Id: Ic6a026b4023d9ea91348f01e597910cdd4a084d8 Reviewed-on: https://chromium-review.googlesource.com/622071 Commit-Queue: Yury Khmel <[email protected]> Reviewed-by: Luis Hector Chavez <[email protected]> Reviewed-by: Xiyuan Xia <[email protected]> Cr-Commit-Position: refs/heads/master@{#496096}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .