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

Issue 533183002: Revert "Eliminate all code related to the AutomaticProfileResetter." (Closed)

Created:
6 years, 3 months ago by engedy
Modified:
6 years, 3 months ago
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Revert "Eliminate all code related to the AutomaticProfileResetter." This reverts commit: https://chromium.googlesource.com/chromium/src/+/93ea39da5423d641ecbc5687764f6b12972e302a. Additionally, it also changes the |first_id| for the string resource group chrome/browser/browser_resources.grd / "includes", because the group has ran out of IDs. BUG=370966 NOPRESUBMIT=true R=asvitkine@chromium.org, dbeam@chromium.org, erg@chromium.org, gab@chromium.org, sky@chromium.org, vasilii@chromium.org Committed: https://crrev.com/9d0221cd251502231877f943fa2872a2f92a5621 Cr-Commit-Position: refs/heads/master@{#295450}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed comments from gab@. #

Total comments: 4

Patch Set 3 : Addressed next set of comments from gab@. #

Total comments: 15

Patch Set 4 : Addressed comments from dbeam@. #

Total comments: 2

Patch Set 5 : Addressed nits. #

Patch Set 6 : Fix Windows compile error. #

Patch Set 7 : Rebase. #

Patch Set 8 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8198 lines, -78 lines) Patch
M build/all.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 2 chunks +30 lines, -0 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 5 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/prefs/chrome_pref_service_factory.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/prefs/pref_hash_filter.cc View 1 chunk +0 lines, -4 lines 0 comments Download
A chrome/browser/profile_resetter/automatic_profile_resetter.h View 1 chunk +268 lines, -0 lines 0 comments Download
A chrome/browser/profile_resetter/automatic_profile_resetter.cc View 1 chunk +763 lines, -0 lines 0 comments Download
A chrome/browser/profile_resetter/automatic_profile_resetter_delegate.h View 1 chunk +239 lines, -0 lines 0 comments Download
A chrome/browser/profile_resetter/automatic_profile_resetter_delegate.cc View 1 2 3 4 5 1 chunk +397 lines, -0 lines 0 comments Download
A chrome/browser/profile_resetter/automatic_profile_resetter_delegate_unittest.cc View 1 chunk +608 lines, -0 lines 0 comments Download
A chrome/browser/profile_resetter/automatic_profile_resetter_factory.h View 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/browser/profile_resetter/automatic_profile_resetter_factory.cc View 1 1 chunk +72 lines, -0 lines 0 comments Download
A chrome/browser/profile_resetter/automatic_profile_resetter_mementos.h View 1 chunk +101 lines, -0 lines 0 comments Download
A chrome/browser/profile_resetter/automatic_profile_resetter_mementos.cc View 1 1 chunk +129 lines, -0 lines 0 comments Download
A chrome/browser/profile_resetter/automatic_profile_resetter_unittest.cc View 1 chunk +1380 lines, -0 lines 0 comments Download
A chrome/browser/profile_resetter/jtl_foundation.h View 1 chunk +193 lines, -0 lines 0 comments Download
A chrome/browser/profile_resetter/jtl_foundation.cc View 1 chunk +48 lines, -0 lines 0 comments Download
A chrome/browser/profile_resetter/jtl_instructions.h View 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/profile_resetter/jtl_interpreter.h View 1 chunk +61 lines, -0 lines 0 comments Download
A chrome/browser/profile_resetter/jtl_interpreter.cc View 1 chunk +748 lines, -0 lines 0 comments Download
A chrome/browser/profile_resetter/jtl_interpreter_unittest.cc View 1 chunk +689 lines, -0 lines 0 comments Download
A chrome/browser/profile_resetter/profile_reset_global_error.h View 1 chunk +72 lines, -0 lines 0 comments Download
A chrome/browser/profile_resetter/profile_reset_global_error.cc View 1 chunk +110 lines, -0 lines 0 comments Download
M chrome/browser/profile_resetter/resettable_settings_snapshot.h View 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/profile_resetter/resettable_settings_snapshot.cc View 2 chunks +14 lines, -3 lines 0 comments Download
M chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 2 chunks +0 lines, -18 lines 0 comments Download
M chrome/browser/resources/options/automatic_settings_reset_banner.js View 1 2 3 4 5 6 2 chunks +11 lines, -29 lines 0 comments Download
M chrome/browser/resources/options/browser_options.html View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/options/options.js View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/options_bundle.js View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/resources/options/reset_profile_settings_banner.html View 1 chunk +18 lines, -0 lines 0 comments Download
A chrome/browser/resources/options/reset_profile_settings_banner.js View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/reset_profile_settings_overlay.js View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/settings_banner.css View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/options/settings_banner.js View 1 2 3 4 5 6 2 chunks +32 lines, -9 lines 0 comments Download
A chrome/browser/ui/profile_reset_bubble.h View 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/browser/ui/profile_reset_bubble_stub.cc View 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/profiles/profile_reset_bubble_view.h View 1 chunk +138 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/profiles/profile_reset_bubble_view.cc View 1 chunk +447 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/reset_profile_settings_handler.h View 4 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/reset_profile_settings_handler.cc View 1 2 3 8 chunks +42 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 4 chunks +8 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/chrome_constants.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_constants.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 2 chunks +13 lines, -0 lines 0 comments Download
A + chrome/tools/profile_reset/OWNERS View 1 chunk +1 line, -2 lines 0 comments Download
A chrome/tools/profile_reset/jtl_compiler.h View 1 chunk +74 lines, -0 lines 0 comments Download
A chrome/tools/profile_reset/jtl_compiler.cc View 1 chunk +252 lines, -0 lines 0 comments Download
A chrome/tools/profile_reset/jtl_compiler.gyp View 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/tools/profile_reset/jtl_compiler_frontend.cc View 1 chunk +112 lines, -0 lines 0 comments Download
A chrome/tools/profile_reset/jtl_compiler_unittest.cc View 1 chunk +217 lines, -0 lines 0 comments Download
A chrome/tools/profile_reset/jtl_parser.h View 1 chunk +83 lines, -0 lines 0 comments Download
A chrome/tools/profile_reset/jtl_parser.cc View 1 chunk +167 lines, -0 lines 0 comments Download
A chrome/tools/profile_reset/jtl_parser_unittest.cc View 1 chunk +346 lines, -0 lines 0 comments Download
M tools/gritsettings/resource_ids View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 36 (11 generated)
engedy
@Dominic: please take a look at the whole thing, and let me know if you ...
6 years, 3 months ago (2014-09-03 14:38:34 UTC) #2
gab
https://codereview.chromium.org/533183002/diff/1/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (left): https://codereview.chromium.org/533183002/diff/1/chrome/browser/prefs/browser_prefs.cc#oldcode228 chrome/browser/prefs/browser_prefs.cc:228: const char kProfileResetPromptMemento[] = "profile.reset_prompt_memento"; Shall we instead use ...
6 years, 3 months ago (2014-09-03 14:51:40 UTC) #3
vasilii
Rubber stamp c/b/profile_resetter/ LGTM
6 years, 3 months ago (2014-09-04 11:51:29 UTC) #4
engedy
https://codereview.chromium.org/533183002/diff/1/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (left): https://codereview.chromium.org/533183002/diff/1/chrome/browser/prefs/browser_prefs.cc#oldcode228 chrome/browser/prefs/browser_prefs.cc:228: const char kProfileResetPromptMemento[] = "profile.reset_prompt_memento"; On 2014/09/03 14:51:39, gab ...
6 years, 3 months ago (2014-09-04 11:59:45 UTC) #5
gab
SGTM, lgtm thanks! https://codereview.chromium.org/533183002/diff/20001/chrome/common/pref_names.cc File chrome/common/pref_names.cc (right): https://codereview.chromium.org/533183002/diff/20001/chrome/common/pref_names.cc#newcode197 chrome/common/pref_names.cc:197: }; git cl format? Feels this ...
6 years, 3 months ago (2014-09-05 01:00:19 UTC) #6
engedy
https://codereview.chromium.org/533183002/diff/20001/chrome/common/pref_names.cc File chrome/common/pref_names.cc (right): https://codereview.chromium.org/533183002/diff/20001/chrome/common/pref_names.cc#newcode197 chrome/common/pref_names.cc:197: }; On 2014/09/05 01:00:19, gab wrote: > git cl ...
6 years, 3 months ago (2014-09-05 11:45:46 UTC) #7
engedy
Dear Owners, You have reviewed the CL removing this code (https://codereview.chromium.org/271673006) ~1 month ago. This ...
6 years, 3 months ago (2014-09-05 11:59:04 UTC) #9
Alexei Svitkine (slow)
lgtm
6 years, 3 months ago (2014-09-05 13:36:02 UTC) #10
Elliot Glaysher
lgtm
6 years, 3 months ago (2014-09-05 17:08:18 UTC) #11
sky
LGTM
6 years, 3 months ago (2014-09-05 19:08:17 UTC) #12
Dan Beam
https://codereview.chromium.org/533183002/diff/40001/chrome/browser/resources/options/reset_profile_settings_banner.js File chrome/browser/resources/options/reset_profile_settings_banner.js (right): https://codereview.chromium.org/533183002/diff/40001/chrome/browser/resources/options/reset_profile_settings_banner.js#newcode27 chrome/browser/resources/options/reset_profile_settings_banner.js:27: this.showMetricName_ = 'AutomaticReset_WebUIBanner_BannerShown'; don't @override private members. either change ...
6 years, 3 months ago (2014-09-05 19:21:45 UTC) #13
engedy
https://codereview.chromium.org/533183002/diff/40001/chrome/browser/resources/options/reset_profile_settings_banner.js File chrome/browser/resources/options/reset_profile_settings_banner.js (right): https://codereview.chromium.org/533183002/diff/40001/chrome/browser/resources/options/reset_profile_settings_banner.js#newcode27 chrome/browser/resources/options/reset_profile_settings_banner.js:27: this.showMetricName_ = 'AutomaticReset_WebUIBanner_BannerShown'; On 2014/09/05 19:21:45, Dan Beam wrote: ...
6 years, 3 months ago (2014-09-10 13:46:26 UTC) #14
Dan Beam
lgtm w/nit https://codereview.chromium.org/533183002/diff/60001/chrome/browser/resources/options/settings_banner.js File chrome/browser/resources/options/settings_banner.js (right): https://codereview.chromium.org/533183002/diff/60001/chrome/browser/resources/options/settings_banner.js#newcode49 chrome/browser/resources/options/settings_banner.js:49: setVisibilityDomElement: null, nit: visibilityDomElement (prefixing with "set" ...
6 years, 3 months ago (2014-09-10 19:13:37 UTC) #15
Dan Beam
slgtm https://codereview.chromium.org/533183002/diff/40001/chrome/browser/ui/webui/options/reset_profile_settings_handler.cc File chrome/browser/ui/webui/options/reset_profile_settings_handler.cc (right): https://codereview.chromium.org/533183002/diff/40001/chrome/browser/ui/webui/options/reset_profile_settings_handler.cc#newcode93 chrome/browser/ui/webui/options/reset_profile_settings_handler.cc:93: OnDismissedResetProfileSettingsBanner, On 2014/09/10 13:46:26, engedy wrote: > On ...
6 years, 3 months ago (2014-09-10 19:14:44 UTC) #16
engedy
https://codereview.chromium.org/533183002/diff/60001/chrome/browser/resources/options/settings_banner.js File chrome/browser/resources/options/settings_banner.js (right): https://codereview.chromium.org/533183002/diff/60001/chrome/browser/resources/options/settings_banner.js#newcode49 chrome/browser/resources/options/settings_banner.js:49: setVisibilityDomElement: null, On 2014/09/10 19:13:37, Dan Beam wrote: > ...
6 years, 3 months ago (2014-09-11 11:51:15 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/533183002/100001
6 years, 3 months ago (2014-09-11 15:04:24 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/10313)
6 years, 3 months ago (2014-09-11 15:16:26 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/533183002/100001
6 years, 3 months ago (2014-09-11 15:22:08 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/10317)
6 years, 3 months ago (2014-09-11 15:29:51 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/533183002/100001
6 years, 3 months ago (2014-09-11 15:45:36 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/10328)
6 years, 3 months ago (2014-09-11 16:03:14 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/533183002/120001
6 years, 3 months ago (2014-09-18 08:45:12 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/11803)
6 years, 3 months ago (2014-09-18 09:22:17 UTC) #34
engedy
Committed patchset #8 (id:140001) manually as 9d0221c (presubmit successful).
6 years, 3 months ago (2014-09-18 10:43:35 UTC) #35
commit-bot: I haz the power
6 years, 3 months ago (2014-09-18 10:56:30 UTC) #36
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/9d0221cd251502231877f943fa2872a2f92a5621
Cr-Commit-Position: refs/heads/master@{#295450}

Powered by Google App Engine
This is Rietveld 408576698