[Wallpaper] Fix JSON parsing error when no sync-daily-refresh-info-key is available.
If the "Surprise Me" feature has never been activated, the 'sync-daily-refresh-info-key' value from Chrome sync will be empty. This causes a JSON.parse exception which then causes an early return from the chrome.storage.onChanged listener. BUG=687722 Change-Id: I6837faee9d8b5738425e1d760badd9abf4e27f11 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1633025Reviewed-by:Xiaoqian Dai <xdai@chromium.org> Reviewed-by:
May Lippert <maybelle@chromium.org> Commit-Queue: May Lippert <maybelle@chromium.org> Auto-Submit: May Lippert <maybelle@chromium.org> Cr-Commit-Position: refs/heads/master@{#666518}
Showing
Please register or sign in to comment