forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Record whether the license is released or not in persistent storage. Add a new field "key_type" to persistent storage for each session. If the license is installed to the device successfully, we update the field with KEY_TYPE_OFFLINE. If the license is released, we should update the key type to KEY_TYPE_RELEASE to reflect this change. In case the JS doesn't provide any response from server and calls "load" again, we can check the key type to avoid restore released keys, which may lead to an exception. Bug: 883895 Test: link in the bug Change-Id: I4672bd0d640b2fd9faa8c6feae45894bd1aee062 Reviewed-on: https://chromium-review.googlesource.com/c/1327171 Commit-Queue: Yuchen Liu <yucliu@chromium.org> Reviewed-by: Xiaohan Wang <xhwang@chromium.org> Reviewed-by: Will Harris <wfh@chromium.org> Cr-Commit-Position: refs/heads/master@{#610176}
- Loading branch information
Yuchen Liu
authored and
Commit Bot
committed
Nov 21, 2018
1 parent
2f81a12
commit b37b0ee
Showing
16 changed files
with
228 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.