Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Android O] Check feature list initialized - fixes crash on upgrade
- Previously it was crashing on getLegacyChannelIds when updating channels on package replaced, because native wasn't loaded on checking ChromeFeatureList.isEnabled. - Now we only check if the flag is enabled if the feature list has been initialized, avoiding the crash. - If the feature list has not been initialized, we assume the feature is enabled, and treat the Sites channel as a legacy channel that should be deleted. This is safe even if the feature is actually disabled, because the Sites channel will be recreated on first use. Bug: 774289 Change-Id: I1f3661e70baea9a6bbbf7eab314ce2e8329bf762 Reviewed-on: https://chromium-review.googlesource.com/718616 Commit-Queue: Anita Woodruff <awdf@chromium.org> Commit-Queue: Peter Beverloo <peter@chromium.org> Reviewed-by: Peter Beverloo <peter@chromium.org> Cr-Commit-Position: refs/heads/master@{#508673}
- Loading branch information