[Sync::USS] BookmarkProc. should have weak_ptr_factory for the worker
Before this patch: BookmarkModelTypeProcessor has one weak_ptr_facotry used for both the controller and the worker. This resulted in the worker having a processor ptr while the model error isn't yet propagated. After this patch: The BookmarkModelTypeProcessor has dedicated weak_ptr_factory for the worker such that in case of model error, it gets invalidated directly while leaving the other weak_ptr_factory for the controller intact. Bug: 516866 Change-Id: If0d9759e0cba7e5b00879646f9072522cbdb866f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1635511 Auto-Submit: Mohamed Amir Yosef <mamir@chromium.org> Commit-Queue: Mikel Astiz <mastiz@chromium.org> Reviewed-by:Mikel Astiz <mastiz@chromium.org> Cr-Commit-Position: refs/heads/master@{#664724}
Showing
Please register or sign in to comment