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

Issue 151003004: Add an automatic settings reset banner. (Closed)

Created:
6 years, 10 months ago by robertshield
Modified:
6 years, 10 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, arv+watch_chromium.org
Visibility:
Public.

Description

Add an automatic settings reset banner. BUG=340803 TEST=NONE Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250144

Patch Set 1 #

Patch Set 2 : Pre-review cleanup. #

Total comments: 40

Patch Set 3 : Feedback, add extract_actions.py changes. #

Patch Set 4 : #

Patch Set 5 : Pre-review cleanup. #

Total comments: 16

Patch Set 6 : Moved reset logic to chrome_pref_service_factory #

Total comments: 6

Patch Set 7 : Rebase. #

Patch Set 8 : Add missing pref_names change. #

Total comments: 11

Patch Set 9 : Bernhard's feedback. #

Total comments: 4

Patch Set 10 : Gab's feedback. #

Total comments: 17

Patch Set 11 : Gab's nits. #

Total comments: 4

Patch Set 12 : Use dom element reference rather than selector string. #

Patch Set 13 : Rebase on top of transaction patch. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+426 lines, -164 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/prefs/chrome_pref_service_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/prefs/chrome_pref_service_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +15 lines, -1 line 0 comments Download
M chrome/browser/prefs/pref_hash_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/prefs/pref_hash_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +14 lines, -4 lines 0 comments Download
M chrome/browser/prefs/pref_hash_filter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 15 chunks +42 lines, -6 lines 0 comments Download
M chrome/browser/prefs/tracked/tracked_atomic_preference.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/tracked/tracked_atomic_preference.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/prefs/tracked/tracked_preference.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/tracked/tracked_split_preference.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/tracked/tracked_split_preference.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +6 lines, -2 lines 0 comments Download
A chrome/browser/resources/options/automatic_settings_reset_banner.html View 1 2 3 4 5 6 7 8 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/browser/resources/options/automatic_settings_reset_banner.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +60 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/browser_options.html View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/options/options.html View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/options/options.js View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/options_bundle.js View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
D chrome/browser/resources/options/reset_profile_settings_banner.css View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -77 lines 0 comments Download
M chrome/browser/resources/options/reset_profile_settings_banner.html View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/options/reset_profile_settings_banner.js View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +9 lines, -50 lines 0 comments Download
A + chrome/browser/resources/options/settings_banner.css View 1 2 3 4 5 6 7 8 4 chunks +15 lines, -12 lines 0 comments Download
A chrome/browser/resources/options/settings_banner.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +86 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/options/automatic_settings_reset_handler.h View 1 2 3 4 5 6 7 8 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/options/automatic_settings_reset_handler.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +68 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/options_ui.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M tools/metrics/actions/chromeactions.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M tools/metrics/actions/extract_actions.py View 1 2 1 chunk +9 lines, -1 line 0 comments Download

Messages

Total messages: 28 (0 generated)
robertshield
Gab, Erik, please take an initial look at the prefs code. If that seems sane, ...
6 years, 10 months ago (2014-02-04 22:26:54 UTC) #1
gab
Awesome :)! Comments below. Cheers! Gab https://codereview.chromium.org/151003004/diff/20001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/151003004/diff/20001/chrome/app/generated_resources.grd#newcode10436 chrome/app/generated_resources.grd:10436: + Learn more ...
6 years, 10 months ago (2014-02-05 15:23:52 UTC) #2
erikwright (departed)
I don't like the mechanism that triggers the UI via a preference value: (1) It ...
6 years, 10 months ago (2014-02-05 15:50:03 UTC) #3
gab
On 2014/02/05 15:50:03, erikwright wrote: > I don't like the mechanism that triggers the UI ...
6 years, 10 months ago (2014-02-05 15:58:11 UTC) #4
erikwright (departed)
On Wed, Feb 5, 2014 at 10:58 AM, <gab@chromium.org> wrote: > On 2014/02/05 15:50:03, erikwright ...
6 years, 10 months ago (2014-02-05 16:22:38 UTC) #5
robertshield
Hey, no fighting on my CL reviews! Spoke with Erik, explained what the UI looks ...
6 years, 10 months ago (2014-02-05 18:35:00 UTC) #6
robertshield
Thanks for your comments! Moved the preference writing to PrefHashFilter, still writing to LocalState as ...
6 years, 10 months ago (2014-02-06 18:56:50 UTC) #7
erikwright (departed)
https://codereview.chromium.org/151003004/diff/310001/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/151003004/diff/310001/chrome/browser/prefs/browser_prefs.cc#newcode242 chrome/browser/prefs/browser_prefs.cc:242: PrefHashFilter::RegisterPrefs(registry); I'd consider having a single call to chrome_prefs:: ...
6 years, 10 months ago (2014-02-06 20:04:03 UTC) #8
gab
Quick second pass; will wait for next cycle, I think you can also start looping ...
6 years, 10 months ago (2014-02-06 20:40:11 UTC) #9
erikwright (departed)
https://codereview.chromium.org/151003004/diff/310001/chrome/browser/prefs/tracked/tracked_atomic_preference.cc File chrome/browser/prefs/tracked/tracked_atomic_preference.cc (right): https://codereview.chromium.org/151003004/diff/310001/chrome/browser/prefs/tracked/tracked_atomic_preference.cc#newcode52 chrome/browser/prefs/tracked/tracked_atomic_preference.cc:52: return was_reset; On 2014/02/06 20:40:11, gab wrote: > On ...
6 years, 10 months ago (2014-02-06 20:51:56 UTC) #10
robertshield
Thanks Gab and Erik, PTAL. Adding OWNERs now. bauerb@: please could you look at the ...
6 years, 10 months ago (2014-02-07 04:36:18 UTC) #11
Bernhard Bauer
https://codereview.chromium.org/151003004/diff/620001/chrome/browser/prefs/pref_hash_filter.cc File chrome/browser/prefs/pref_hash_filter.cc (right): https://codereview.chromium.org/151003004/diff/620001/chrome/browser/prefs/pref_hash_filter.cc#newcode147 chrome/browser/prefs/pref_hash_filter.cc:147: What does this do? https://codereview.chromium.org/151003004/diff/620001/chrome/browser/prefs/pref_hash_filter.h File chrome/browser/prefs/pref_hash_filter.h (right): https://codereview.chromium.org/151003004/diff/620001/chrome/browser/prefs/pref_hash_filter.h#newcode35 ...
6 years, 10 months ago (2014-02-07 08:14:52 UTC) #12
robertshield
Thanks Barnhard, PTAL! https://codereview.chromium.org/151003004/diff/620001/chrome/browser/prefs/pref_hash_filter.cc File chrome/browser/prefs/pref_hash_filter.cc (right): https://codereview.chromium.org/151003004/diff/620001/chrome/browser/prefs/pref_hash_filter.cc#newcode147 chrome/browser/prefs/pref_hash_filter.cc:147: On 2014/02/07 08:14:53, Bernhard Bauer wrote: ...
6 years, 10 months ago (2014-02-07 19:08:28 UTC) #13
gab
Final comments from me (I didn't look further at the UI as I know nothing ...
6 years, 10 months ago (2014-02-07 19:38:30 UTC) #14
robertshield
Thanks Gab! https://codereview.chromium.org/151003004/diff/460003/chrome/browser/prefs/pref_hash_filter_unittest.cc File chrome/browser/prefs/pref_hash_filter_unittest.cc (right): https://codereview.chromium.org/151003004/diff/460003/chrome/browser/prefs/pref_hash_filter_unittest.cc#newcode247 chrome/browser/prefs/pref_hash_filter_unittest.cc:247: reset_count_++; On 2014/02/07 19:38:31, gab wrote: > ...
6 years, 10 months ago (2014-02-07 21:21:34 UTC) #15
gab
lgtm w/ nits. Cheers! Gab https://codereview.chromium.org/151003004/diff/1150001/chrome/browser/prefs/chrome_pref_service_factory.cc File chrome/browser/prefs/chrome_pref_service_factory.cc (right): https://codereview.chromium.org/151003004/diff/1150001/chrome/browser/prefs/chrome_pref_service_factory.cc#newcode426 chrome/browser/prefs/chrome_pref_service_factory.cc:426: // reset event occurred. ...
6 years, 10 months ago (2014-02-07 22:00:18 UTC) #16
Bernhard Bauer
LGTM! https://codereview.chromium.org/151003004/diff/620001/chrome/browser/resources/options/automatic_settings_reset_banner.js File chrome/browser/resources/options/automatic_settings_reset_banner.js (right): https://codereview.chromium.org/151003004/diff/620001/chrome/browser/resources/options/automatic_settings_reset_banner.js#newcode15 chrome/browser/resources/options/automatic_settings_reset_banner.js:15: function AutomaticSettingsResetBanner() {} On 2014/02/07 19:08:28, robertshield wrote: ...
6 years, 10 months ago (2014-02-08 17:38:45 UTC) #17
robertshield
Thanks Gab and Bernhard! https://codereview.chromium.org/151003004/diff/1150001/chrome/browser/prefs/chrome_pref_service_factory.cc File chrome/browser/prefs/chrome_pref_service_factory.cc (right): https://codereview.chromium.org/151003004/diff/1150001/chrome/browser/prefs/chrome_pref_service_factory.cc#newcode426 chrome/browser/prefs/chrome_pref_service_factory.cc:426: // reset event occurred. Used ...
6 years, 10 months ago (2014-02-10 02:30:52 UTC) #18
gab
last nit; lgtm++ https://codereview.chromium.org/151003004/diff/1150001/chrome/browser/prefs/pref_hash_filter.h File chrome/browser/prefs/pref_hash_filter.h (right): https://codereview.chromium.org/151003004/diff/1150001/chrome/browser/prefs/pref_hash_filter.h#newcode14 chrome/browser/prefs/pref_hash_filter.h:14: #include "base/callback.h" On 2014/02/10 02:30:53, robertshield ...
6 years, 10 months ago (2014-02-10 04:02:20 UTC) #19
robertshield
The CQ bit was checked by robertshield@chromium.org
6 years, 10 months ago (2014-02-10 13:23:46 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robertshield@chromium.org/151003004/1550001
6 years, 10 months ago (2014-02-10 13:24:08 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-10 13:51:57 UTC) #22
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=49215
6 years, 10 months ago (2014-02-10 13:51:58 UTC) #23
robertshield
@Alexei: ping :) https://codereview.chromium.org/151003004/diff/760002/chrome/browser/prefs/pref_hash_filter.cc File chrome/browser/prefs/pref_hash_filter.cc (right): https://codereview.chromium.org/151003004/diff/760002/chrome/browser/prefs/pref_hash_filter.cc#newcode7 chrome/browser/prefs/pref_hash_filter.cc:7: #include "base/callback.h" On 2014/02/10 04:02:21, gab ...
6 years, 10 months ago (2014-02-10 13:56:14 UTC) #24
Alexei Svitkine (slow)
Actions lgtm, but it would good to make the script be able to scan the ...
6 years, 10 months ago (2014-02-10 14:41:38 UTC) #25
robertshield
The CQ bit was checked by robertshield@chromium.org
6 years, 10 months ago (2014-02-10 15:26:44 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robertshield@chromium.org/151003004/1550001
6 years, 10 months ago (2014-02-10 15:26:53 UTC) #27
commit-bot: I haz the power
6 years, 10 months ago (2014-02-10 17:55:33 UTC) #28
Message was sent while issue was closed.
Change committed as 250144

Powered by Google App Engine
This is Rietveld 408576698