DescriptionDefending from failing APIs.
Some chrome.* API calls may legitimately fail.
Also, chrome.runtime.onInstalled/onStartup callbacks may not happen due to implementation bugs.
We need to rewrite the extension to degrade as little as possible in such cases. In practice, this only means initializing values retrieved from chrome.storage. Since we initialize them upon retrieval, there is no need to initialize them from installed/startup callbacks, so I'm removing them from there.
The only remaining initialization if for activeNotifications; it will be take care of when I start using notifications.getAll API call.
BUG=164227
TEST=Existing tests should work
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201921
Patch Set 1 #
Total comments: 1
Messages
Total messages: 10 (0 generated)
|