ambient: Do now show img element when no url
The preview photo is fetched and shown async, the img element on the settings page is broken for a while before the image is downloaded. This patch hides the img and shows it when the url is not empty. Bug: b/166816130 Test: added new js test Change-Id: I5ccc563dcc3f22c836a2fc35e7fa0e007ace846f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2383262 Commit-Queue: Tao Wu <wutao@chromium.org> Reviewed-by:Jimmy Gong <jimmyxgong@chromium.org> Reviewed-by:
Kyle Horimoto <khorimoto@chromium.org> Reviewed-by:
Xiaohui Chen <xiaohuic@chromium.org> Cr-Commit-Position: refs/heads/master@{#805364}
Showing
Please register or sign in to comment