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

Issue 2687393004: Gather stability prefs into managing objects. (Closed)

Created:
3 years, 10 months ago by Steven Holte
Modified:
3 years, 10 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Gather stability prefs into managing objects. This collects code reading and writing stability prefs from MetricsLog and MetricsService into StabilityMetricsProvider and EnvironmentRecorder objects. Also removes the obsolete stability prefs which are now unneeded. BUG=693676 Review-Url: https://codereview.chromium.org/2687393004 Cr-Commit-Position: refs/heads/master@{#452301} Committed: https://chromium.googlesource.com/chromium/src/+/1bf273c8b89a8809183f6a6c93ebc1a1b935a8ee

Patch Set 1 #

Patch Set 2 : Revert changes to stability metrics helper #

Patch Set 3 : Cleanup names files #

Patch Set 4 : Remove unused method #

Total comments: 18

Patch Set 5 : Incorporate Feedback #

Patch Set 6 : Rebase and fix tests #

Patch Set 7 : Update other includes #

Patch Set 8 : Keep MetricsLog::RegisterPrefs #

Total comments: 13

Patch Set 9 : Incorporate Feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+603 lines, -335 lines) Patch
M components/metrics/BUILD.gn View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -0 lines 0 comments Download
M components/metrics/clean_exit_beacon.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M components/metrics/clean_exit_beacon.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
A components/metrics/environment_recorder.h View 1 2 3 4 5 6 7 8 1 chunk +59 lines, -0 lines 0 comments Download
A components/metrics/environment_recorder.cc View 1 2 3 4 5 6 7 8 1 chunk +96 lines, -0 lines 0 comments Download
A components/metrics/environment_recorder_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +75 lines, -0 lines 0 comments Download
M components/metrics/metrics_log.h View 1 2 3 4 5 6 7 2 chunks +1 line, -6 lines 0 comments Download
M components/metrics/metrics_log.cc View 1 2 3 4 5 6 7 7 chunks +7 lines, -148 lines 0 comments Download
M components/metrics/metrics_log_unittest.cc View 1 2 3 4 5 5 chunks +4 lines, -96 lines 0 comments Download
M components/metrics/metrics_pref_names.h View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -2 lines 0 comments Download
M components/metrics/metrics_pref_names.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -9 lines 0 comments Download
M components/metrics/metrics_service.h View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download
M components/metrics/metrics_service.cc View 1 2 3 4 5 6 7 8 13 chunks +26 lines, -63 lines 0 comments Download
M components/metrics/metrics_service_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -8 lines 0 comments Download
A components/metrics/stability_metrics_provider.h View 1 2 3 4 5 6 7 8 1 chunk +53 lines, -0 lines 0 comments Download
A components/metrics/stability_metrics_provider.cc View 1 2 3 4 5 6 7 8 1 chunk +179 lines, -0 lines 0 comments Download
A components/metrics/stability_metrics_provider_unittest.cc View 1 2 3 4 5 1 chunk +76 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (32 generated)
Steven Holte
3 years, 10 months ago (2017-02-11 01:12:29 UTC) #4
rkaplow
https://codereview.chromium.org/2687393004/diff/60001/components/metrics/clean_exit_beacon.h File components/metrics/clean_exit_beacon.h (right): https://codereview.chromium.org/2687393004/diff/60001/components/metrics/clean_exit_beacon.h#newcode12 components/metrics/clean_exit_beacon.h:12: class PrefRegistrySimple; nit alpha https://codereview.chromium.org/2687393004/diff/60001/components/metrics/environment_recorder.h File components/metrics/environment_recorder.h (right): https://codereview.chromium.org/2687393004/diff/60001/components/metrics/environment_recorder.h#newcode19 ...
3 years, 10 months ago (2017-02-14 20:11:19 UTC) #5
Steven Holte
https://codereview.chromium.org/2687393004/diff/60001/components/metrics/clean_exit_beacon.h File components/metrics/clean_exit_beacon.h (right): https://codereview.chromium.org/2687393004/diff/60001/components/metrics/clean_exit_beacon.h#newcode12 components/metrics/clean_exit_beacon.h:12: class PrefRegistrySimple; On 2017/02/14 20:11:19, rkaplow wrote: > nit ...
3 years, 10 months ago (2017-02-15 22:42:10 UTC) #6
rkaplow
lgtm
3 years, 10 months ago (2017-02-16 21:14:16 UTC) #7
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/2687393004/100001
3 years, 10 months ago (2017-02-16 23:45:41 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/155264) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 10 months ago (2017-02-16 23:56:14 UTC) #16
Steven Holte
+asvitkine for chrome/browser/android/metrics/ OWNERS
3 years, 10 months ago (2017-02-17 01:19:57 UTC) #18
Alexei Svitkine (slow)
Every non-trivial change should have a corresponding BUG= specified. Please do this for this change ...
3 years, 10 months ago (2017-02-17 16:02:23 UTC) #27
Steven Holte
https://codereview.chromium.org/2687393004/diff/140001/components/metrics/environment_recorder.cc File components/metrics/environment_recorder.cc (right): https://codereview.chromium.org/2687393004/diff/140001/components/metrics/environment_recorder.cc#newcode61 components/metrics/environment_recorder.cc:61: On 2017/02/17 16:02:22, Alexei Svitkine (slow) wrote: > Nit: ...
3 years, 10 months ago (2017-02-17 20:21:33 UTC) #29
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/2687393004/diff/140001/components/metrics/metrics_pref_names.cc File components/metrics/metrics_pref_names.cc (right): https://codereview.chromium.org/2687393004/diff/140001/components/metrics/metrics_pref_names.cc#newcode6 components/metrics/metrics_pref_names.cc:6: #include "components/metrics/stability_pref_names.h" On 2017/02/17 20:21:32, Steven Holte wrote: ...
3 years, 10 months ago (2017-02-17 20:33:44 UTC) #32
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/2687393004/160001
3 years, 10 months ago (2017-02-21 20:23:11 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_daisy_chromium_compile_only_ng on ...
3 years, 10 months ago (2017-02-21 22:27:01 UTC) #39
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/2687393004/160001
3 years, 10 months ago (2017-02-22 00:30:16 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_tsan_rel_ng on ...
3 years, 10 months ago (2017-02-22 02:37:29 UTC) #43
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/2687393004/160001
3 years, 10 months ago (2017-02-22 22:23:53 UTC) #45
commit-bot: I haz the power
3 years, 10 months ago (2017-02-23 00:23:20 UTC) #48
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/1bf273c8b89a8809183f6a6c93eb...

Powered by Google App Engine
This is Rietveld 408576698