Fix the FullRestoreServiceTest unit tests.
The parameter id of the function HandleRestoreNotificationClicked is user-after-free on builder "Linux ChromiumOS MSan Tests", because the notification is closed at the beginning of HandleRestoreNotificationClicked, which may cause `id` becomes uninitialized. Move notification_ as the class variable to hold the notitification id in the function HandleRestoreNotificationClicked to resolve the unit tests issue. And enable the disabled unit tests. BUG=1146900 BUG=1164559 Change-Id: Iabf8ad0233944cce071b3c2be1a10ca746ed2a6b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2619409 Commit-Queue: Nancy Wang <nancylingwang@chromium.org> Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Cr-Commit-Position: refs/heads/master@{#842107}
Showing
Please register or sign in to comment