Commit 3d4a43a7 authored by Kush Sinha's avatar Kush Sinha Committed by Commit Bot

Fix race condition in Account Manager UI

A race condition exists between Account Manager's JS components'
initialization and AccountTrackerService callbacks.

Bug: 833797
Change-Id: I8eaf0d134aef4c08e089494b3ddd7d1bf7d0b2ae
Reviewed-on: https://chromium-review.googlesource.com/1150171Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Kush Sinha <sinhak@chromium.org>
Cr-Commit-Position: refs/heads/master@{#577907}
parent 735fd019
......@@ -157,6 +157,10 @@ void AccountManagerUIHandler::OnAccountRemoved(const AccountInfo& account_key) {
}
void AccountManagerUIHandler::RefreshUI() {
if (!IsJavascriptAllowed()) {
return;
}
FireWebUIListener("accounts-changed");
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment