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

Issue 1294923003: Add a triggered profile reset mechanism. (Closed)

Created:
5 years, 4 months ago by robertshield
Modified:
5 years, 3 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a triggered profile reset mechanism. Adds the logic required for a profile to notice that a reset is suggested on Windows. Does not include UI updates, those are coming in a subsequent CL. BUG=508970 Committed: https://crrev.com/388794a430ccf46ec00785be177456f97a0cd9c3 Cr-Commit-Position: refs/heads/master@{#350751}

Patch Set 1 #

Patch Set 2 : Wire up to StartupBrowserCreatorImpl. #

Patch Set 3 : Some browser test fixes. #

Patch Set 4 : #

Patch Set 5 : platform file refactor #

Patch Set 6 : Remove unused test function on non-win builds. #

Patch Set 7 : Comment cleanup #

Patch Set 8 : format #

Total comments: 36

Patch Set 9 : Grt feedback #

Total comments: 22

Patch Set 10 : grt nits, UMA histogram #

Total comments: 6

Patch Set 11 : grt nits #

Total comments: 73

Patch Set 12 : partial feedback for grt, asvitkine, engedy, more changes coming (please do not re-review yet) #

Patch Set 13 : Moar feedback, unit test, comment update. #

Patch Set 14 : Handle background case by clearing flag in startup browser creator. #

Total comments: 1

Patch Set 15 : Add field trial support. #

Total comments: 14

Patch Set 16 : rebase #

Patch Set 17 : engedy nits #

Patch Set 18 : Fix non-win compile that broke during rebase. #

Total comments: 12

Patch Set 19 : msw feedback #

Total comments: 26

Patch Set 20 : msw feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+664 lines, -24 lines) Patch
A chrome/browser/profile_resetter/triggered_profile_resetter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +85 lines, -0 lines 0 comments Download
A chrome/browser/profile_resetter/triggered_profile_resetter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/browser/profile_resetter/triggered_profile_resetter_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/browser/profile_resetter/triggered_profile_resetter_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +54 lines, -0 lines 0 comments Download
A + chrome/browser/profile_resetter/triggered_profile_resetter_stub.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -5 lines 0 comments Download
A chrome/browser/profile_resetter/triggered_profile_resetter_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +86 lines, -0 lines 0 comments Download
A chrome/browser/profile_resetter/triggered_profile_resetter_win_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +104 lines, -0 lines 0 comments Download
M chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +45 lines, -19 lines 0 comments Download
A chrome/browser/ui/startup/startup_browser_creator_triggered_reset_browsertest_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +160 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (7 generated)
robertshield
format
5 years, 3 months ago (2015-09-03 15:00:30 UTC) #1
robertshield
Greg, would you be willing to give this a read through?
5 years, 3 months ago (2015-09-03 15:01:35 UTC) #3
grt (UTC plus 2)
looks pretty good. https://codereview.chromium.org/1294923003/diff/160001/chrome/browser/profile_resetter/triggered_profile_resetter.h File chrome/browser/profile_resetter/triggered_profile_resetter.h (right): https://codereview.chromium.org/1294923003/diff/160001/chrome/browser/profile_resetter/triggered_profile_resetter.h#newcode22 chrome/browser/profile_resetter/triggered_profile_resetter.h:22: // third party tools (AVs or ...
5 years, 3 months ago (2015-09-04 18:35:48 UTC) #4
robertshield
Thanks, PTAL https://codereview.chromium.org/1294923003/diff/160001/chrome/browser/profile_resetter/triggered_profile_resetter.h File chrome/browser/profile_resetter/triggered_profile_resetter.h (right): https://codereview.chromium.org/1294923003/diff/160001/chrome/browser/profile_resetter/triggered_profile_resetter.h#newcode22 chrome/browser/profile_resetter/triggered_profile_resetter.h:22: // third party tools (AVs or cleaner ...
5 years, 3 months ago (2015-09-04 20:27:19 UTC) #5
grt (UTC plus 2)
down to nits. https://codereview.chromium.org/1294923003/diff/180001/chrome/browser/profile_resetter/triggered_profile_resetter.cc File chrome/browser/profile_resetter/triggered_profile_resetter.cc (right): https://codereview.chromium.org/1294923003/diff/180001/chrome/browser/profile_resetter/triggered_profile_resetter.cc#newcode6 chrome/browser/profile_resetter/triggered_profile_resetter.cc:6: #include "chrome/browser/profiles/profile.h" nit: blank line between ...
5 years, 3 months ago (2015-09-05 12:44:14 UTC) #6
robertshield
Thanks, PTAL. https://codereview.chromium.org/1294923003/diff/180001/chrome/browser/profile_resetter/triggered_profile_resetter.cc File chrome/browser/profile_resetter/triggered_profile_resetter.cc (right): https://codereview.chromium.org/1294923003/diff/180001/chrome/browser/profile_resetter/triggered_profile_resetter.cc#newcode6 chrome/browser/profile_resetter/triggered_profile_resetter.cc:6: #include "chrome/browser/profiles/profile.h" On 2015/09/05 12:44:13, grt wrote: ...
5 years, 3 months ago (2015-09-13 06:04:02 UTC) #7
grt (UTC plus 2)
lgtm w/ nits and a histogram suggestion. https://codereview.chromium.org/1294923003/diff/220001/chrome/browser/profile_resetter/triggered_profile_resetter.cc File chrome/browser/profile_resetter/triggered_profile_resetter.cc (right): https://codereview.chromium.org/1294923003/diff/220001/chrome/browser/profile_resetter/triggered_profile_resetter.cc#newcode15 chrome/browser/profile_resetter/triggered_profile_resetter.cc:15: #if DCHECK_IS_ON() ...
5 years, 3 months ago (2015-09-13 13:30:52 UTC) #10
robertshield
Thanks Greg, adding the necessary plethora of OWNERS: msw@chromium.org: Please review changes in chrome/browser/ui/startup/* asvitkine@chromium.org: ...
5 years, 3 months ago (2015-09-14 14:27:36 UTC) #12
grt (UTC plus 2)
this is so riveting that i CAN'T STOP READING IT! https://codereview.chromium.org/1294923003/diff/240001/chrome/browser/profile_resetter/triggered_profile_resetter.h File chrome/browser/profile_resetter/triggered_profile_resetter.h (right): https://codereview.chromium.org/1294923003/diff/240001/chrome/browser/profile_resetter/triggered_profile_resetter.h#newcode8 ...
5 years, 3 months ago (2015-09-14 14:35:34 UTC) #13
grt (UTC plus 2)
this is so riveting that i CAN'T STOP READING IT! https://codereview.chromium.org/1294923003/diff/240001/chrome/browser/profile_resetter/triggered_profile_resetter.h File chrome/browser/profile_resetter/triggered_profile_resetter.h (right): https://codereview.chromium.org/1294923003/diff/240001/chrome/browser/profile_resetter/triggered_profile_resetter.h#newcode8 ...
5 years, 3 months ago (2015-09-14 14:35:34 UTC) #14
battre
I won't be able to look at this during this week. Balazs, do you want ...
5 years, 3 months ago (2015-09-14 14:41:53 UTC) #16
engedy
On 2015/09/14 14:41:53, battre wrote: > I won't be able to look at this during ...
5 years, 3 months ago (2015-09-14 14:46:33 UTC) #17
engedy
Some initial comments, I'll do another pass including the tests once I get home. https://codereview.chromium.org/1294923003/diff/240001/chrome/browser/profile_resetter/triggered_profile_resetter.h ...
5 years, 3 months ago (2015-09-14 16:08:29 UTC) #18
anthonyvd
chrome/browser/profiles/ lgtm
5 years, 3 months ago (2015-09-14 16:11:51 UTC) #19
Alexei Svitkine (slow)
https://codereview.chromium.org/1294923003/diff/240001/chrome/browser/profile_resetter/triggered_profile_resetter.h File chrome/browser/profile_resetter/triggered_profile_resetter.h (right): https://codereview.chromium.org/1294923003/diff/240001/chrome/browser/profile_resetter/triggered_profile_resetter.h#newcode70 chrome/browser/profile_resetter/triggered_profile_resetter.h:70: #if DCHECK_IS_ON() Nit: I don't think it's worth guarding ...
5 years, 3 months ago (2015-09-14 17:05:43 UTC) #20
engedy
c/b/profile_resetter LGTM % comments. https://codereview.chromium.org/1294923003/diff/240001/chrome/browser/profile_resetter/triggered_profile_resetter.cc File chrome/browser/profile_resetter/triggered_profile_resetter.cc (right): https://codereview.chromium.org/1294923003/diff/240001/chrome/browser/profile_resetter/triggered_profile_resetter.cc#newcode7 chrome/browser/profile_resetter/triggered_profile_resetter.cc:7: #include "chrome/browser/profiles/profile.h" nit: This is ...
5 years, 3 months ago (2015-09-14 23:28:56 UTC) #21
grt (UTC plus 2)
https://codereview.chromium.org/1294923003/diff/240001/chrome/browser/profile_resetter/triggered_profile_resetter.h File chrome/browser/profile_resetter/triggered_profile_resetter.h (right): https://codereview.chromium.org/1294923003/diff/240001/chrome/browser/profile_resetter/triggered_profile_resetter.h#newcode47 chrome/browser/profile_resetter/triggered_profile_resetter.h:47: enum : int { kMaxToolNameLength = 100 }; On ...
5 years, 3 months ago (2015-09-15 14:13:52 UTC) #22
engedy
https://codereview.chromium.org/1294923003/diff/240001/chrome/browser/profile_resetter/triggered_profile_resetter.h File chrome/browser/profile_resetter/triggered_profile_resetter.h (right): https://codereview.chromium.org/1294923003/diff/240001/chrome/browser/profile_resetter/triggered_profile_resetter.h#newcode47 chrome/browser/profile_resetter/triggered_profile_resetter.h:47: enum : int { kMaxToolNameLength = 100 }; On ...
5 years, 3 months ago (2015-09-15 14:48:44 UTC) #23
robertshield
Many thanks for the feedback, please take another look. https://codereview.chromium.org/1294923003/diff/240001/chrome/browser/profile_resetter/triggered_profile_resetter.cc File chrome/browser/profile_resetter/triggered_profile_resetter.cc (right): https://codereview.chromium.org/1294923003/diff/240001/chrome/browser/profile_resetter/triggered_profile_resetter.cc#newcode7 chrome/browser/profile_resetter/triggered_profile_resetter.cc:7: ...
5 years, 3 months ago (2015-09-21 04:16:23 UTC) #24
robertshield
https://codereview.chromium.org/1294923003/diff/300001/chrome/browser/profile_resetter/triggered_profile_resetter.h File chrome/browser/profile_resetter/triggered_profile_resetter.h (right): https://codereview.chromium.org/1294923003/diff/300001/chrome/browser/profile_resetter/triggered_profile_resetter.h#newcode62 chrome/browser/profile_resetter/triggered_profile_resetter.h:62: // will return false. Used since Note to self: ...
5 years, 3 months ago (2015-09-21 04:17:30 UTC) #25
engedy
LGTM % nits and very minor comments. https://codereview.chromium.org/1294923003/diff/240001/chrome/browser/profile_resetter/triggered_profile_resetter_factory.cc File chrome/browser/profile_resetter/triggered_profile_resetter_factory.cc (right): https://codereview.chromium.org/1294923003/diff/240001/chrome/browser/profile_resetter/triggered_profile_resetter_factory.cc#newcode61 chrome/browser/profile_resetter/triggered_profile_resetter_factory.cc:61: #if defined(OS_WIN) ...
5 years, 3 months ago (2015-09-21 12:56:11 UTC) #26
Alexei Svitkine (slow)
histograms lgtm
5 years, 3 months ago (2015-09-21 15:00:42 UTC) #27
robertshield
Thanks Balazs! @msw are you able to OWNERs review the StartupBrowserCreator stuff here? https://codereview.chromium.org/1294923003/diff/240001/chrome/browser/profile_resetter/triggered_profile_resetter_factory.cc File ...
5 years, 3 months ago (2015-09-21 22:04:31 UTC) #28
msw
On 2015/09/21 22:04:31, robertshield wrote: > @msw are you able to OWNERs review the StartupBrowserCreator ...
5 years, 3 months ago (2015-09-21 22:08:37 UTC) #29
msw
Sorry if I'm missing some context. If malware can mess with the profile, can't it ...
5 years, 3 months ago (2015-09-22 17:44:26 UTC) #30
robertshield
Thanks Mike, PTAL! > Sorry if I'm missing some context. If malware can mess with ...
5 years, 3 months ago (2015-09-24 04:00:40 UTC) #31
msw
Sorry, more questions and nits. https://codereview.chromium.org/1294923003/diff/400001/chrome/browser/ui/startup/startup_browser_creator_triggered_reset_browsertest_win.cc File chrome/browser/ui/startup/startup_browser_creator_triggered_reset_browsertest_win.cc (right): https://codereview.chromium.org/1294923003/diff/400001/chrome/browser/ui/startup/startup_browser_creator_triggered_reset_browsertest_win.cc#newcode32 chrome/browser/ui/startup/startup_browser_creator_triggered_reset_browsertest_win.cc:32: Browser* other_browser = NULL; ...
5 years, 3 months ago (2015-09-24 17:15:32 UTC) #32
robertshield
Thanks Mike, appreciate the questions :-) Answered as I could. https://codereview.chromium.org/1294923003/diff/400001/chrome/browser/ui/startup/startup_browser_creator_triggered_reset_browsertest_win.cc File chrome/browser/ui/startup/startup_browser_creator_triggered_reset_browsertest_win.cc (right): https://codereview.chromium.org/1294923003/diff/400001/chrome/browser/ui/startup/startup_browser_creator_triggered_reset_browsertest_win.cc#newcode32 ...
5 years, 3 months ago (2015-09-25 00:39:19 UTC) #33
msw
lgtm, thanks! https://codereview.chromium.org/1294923003/diff/400001/chrome/browser/ui/startup/startup_browser_creator_triggered_reset_browsertest_win.cc File chrome/browser/ui/startup/startup_browser_creator_triggered_reset_browsertest_win.cc (right): https://codereview.chromium.org/1294923003/diff/400001/chrome/browser/ui/startup/startup_browser_creator_triggered_reset_browsertest_win.cc#newcode33 chrome/browser/ui/startup/startup_browser_creator_triggered_reset_browsertest_win.cc:33: for (chrome::BrowserIterator it; !it.done() && !other_browser; it.Next()) ...
5 years, 3 months ago (2015-09-25 01:55:43 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1294923003/420001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1294923003/420001
5 years, 3 months ago (2015-09-25 02:03:08 UTC) #37
commit-bot: I haz the power
Committed patchset #20 (id:420001)
5 years, 3 months ago (2015-09-25 02:42:00 UTC) #38
commit-bot: I haz the power
5 years, 3 months ago (2015-09-25 02:43:53 UTC) #39
Message was sent while issue was closed.
Patchset 20 (id:??) landed as
https://crrev.com/388794a430ccf46ec00785be177456f97a0cd9c3
Cr-Commit-Position: refs/heads/master@{#350751}

Powered by Google App Engine
This is Rietveld 408576698