Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(958)

Issue 2952883002: Chrome Cleaner: Fix issue where a tagged profile could be reset multiple times (Closed)

Created:
3 years, 6 months ago by alito
Modified:
3 years, 6 months ago
Reviewers:
ftirelo, robertshield
CC:
chromium-reviews, vakh+watch_chromium.org, joenotcharles+watch_chromium.org, grt+watch_chromium.org, timvolodine, csharp+watch_chromium.org, alito+watch_chromium.org, ftirelo+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Chrome Cleaner: Fix issue where a tagged profile could be reset multiple times The ProfileResetter object in the SettingsResetter class needs to be kept alive until its reset operation has been completed, otherwise the SettingsResetter object could be destroyed before it has had a chance to untag profiles that were already reset. This is now done by keeping a vector of ProfileResetter objects until the SettingsResetter class is deleted. Review-Url: https://codereview.chromium.org/2952883002 Cr-Commit-Position: refs/heads/master@{#481614} Committed: https://chromium.googlesource.com/chromium/src/+/dac87b8db8fa7f9999bed9e1c37d99bea5596563

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add sequence DCHECKs. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -1 line) Patch
M chrome/browser/safe_browsing/chrome_cleaner/settings_resetter_win.cc View 1 4 chunks +15 lines, -1 line 0 comments Download

Messages

Total messages: 18 (10 generated)
alito
PTAL.
3 years, 6 months ago (2017-06-22 01:11:35 UTC) #6
alito
Forgot to add OWNER... adding Robert.
3 years, 6 months ago (2017-06-22 06:22:26 UTC) #8
ftirelo
LGTM with a nit. https://codereview.chromium.org/2952883002/diff/1/chrome/browser/safe_browsing/chrome_cleaner/settings_resetter_win.cc File chrome/browser/safe_browsing/chrome_cleaner/settings_resetter_win.cc (right): https://codereview.chromium.org/2952883002/diff/1/chrome/browser/safe_browsing/chrome_cleaner/settings_resetter_win.cc#newcode148 chrome/browser/safe_browsing/chrome_cleaner/settings_resetter_win.cc:148: profile_resetters_.back()->Reset( Would it make sense ...
3 years, 6 months ago (2017-06-22 11:04:39 UTC) #9
ftirelo
Nice finding btw!
3 years, 6 months ago (2017-06-22 11:04:50 UTC) #10
robertshield
lgtm
3 years, 6 months ago (2017-06-22 17:16:55 UTC) #11
alito
All done. Landing. https://codereview.chromium.org/2952883002/diff/1/chrome/browser/safe_browsing/chrome_cleaner/settings_resetter_win.cc File chrome/browser/safe_browsing/chrome_cleaner/settings_resetter_win.cc (right): https://codereview.chromium.org/2952883002/diff/1/chrome/browser/safe_browsing/chrome_cleaner/settings_resetter_win.cc#newcode148 chrome/browser/safe_browsing/chrome_cleaner/settings_resetter_win.cc:148: profile_resetters_.back()->Reset( On 2017/06/22 11:04:39, ftirelo wrote: ...
3 years, 6 months ago (2017-06-22 17:44:11 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2952883002/40001
3 years, 6 months ago (2017-06-22 17:44:38 UTC) #15
commit-bot: I haz the power
3 years, 6 months ago (2017-06-22 18:50:56 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/dac87b8db8fa7f9999bed9e1c37d...

Powered by Google App Engine
This is Rietveld 408576698