bookmarks: Fix theoretical race when changing titles
A BookmarkNode's title can only be changed from the UI thread, but is also read by the history backend thread via HistoryBookmarkModel::GetBookmarks(). Hence, a lock must be acquired before changing the title. In practice, this race should be extremely unlikely (if not impossible) since assignment of base::string16 may as well be atomic in practice. Change-Id: I8b31b977efe8fdcb918be8692984b2eab9dd0411 Bug: None Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2031041Reviewed-by:Scott Violet <sky@chromium.org> Commit-Queue: Mikel Astiz <mastiz@chromium.org> Cr-Commit-Position: refs/heads/master@{#737357}
Showing
Please register or sign in to comment