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

Issue 1366643002: Extract guts of ChromeStabilityMetricsProvider into helper class (Closed)

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

Description

Extract guts of ChromeStabilityMetricsProvider into helper class The iOS port needs to turn down its usage of ChromeStabilityMetricsProvider in favor of using its own stability metrics provider. To minimize code duplication between the two providers, this CL extracts the code that will be common between the two into a shared helper class. As a necessary dependence, this CL also componentizes system_memory_stats_recorder*. Those files can be componentized as-is. BUG=512422 Committed: https://crrev.com/8ae15621b008c8df6a71af4f6a5a3ff28b6131d0 Cr-Commit-Position: refs/heads/master@{#351036}

Patch Set 1 #

Patch Set 2 : Self-review #

Patch Set 3 : Fix build #

Patch Set 4 : Fix build again #

Patch Set 5 : More build fixes #

Patch Set 6 : More build fixes #

Total comments: 6

Patch Set 7 : Response to review #

Patch Set 8 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+285 lines, -635 lines) Patch
M chrome/browser/android/metrics/uma_session_stats.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
D chrome/browser/memory/system_memory_stats_recorder.h View 1 chunk +0 lines, -30 lines 0 comments Download
D chrome/browser/memory/system_memory_stats_recorder_linux.cc View 1 chunk +0 lines, -97 lines 0 comments Download
D chrome/browser/memory/system_memory_stats_recorder_win.cc View 1 chunk +0 lines, -44 lines 0 comments Download
M chrome/browser/memory/tab_manager.cc View 1 2 3 4 5 6 7 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/metrics/chrome_stability_metrics_provider.h View 3 chunks +2 lines, -29 lines 0 comments Download
M chrome/browser/metrics/chrome_stability_metrics_provider.cc View 1 2 3 4 5 6 8 chunks +15 lines, -201 lines 0 comments Download
M chrome/browser/metrics/chrome_stability_metrics_provider_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/metrics/metrics_service_browsertest.cc View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 2 chunks +0 lines, -34 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/metrics.gypi View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M components/metrics/BUILD.gn View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M components/metrics/metrics_pref_names.h View 1 chunk +8 lines, -0 lines 0 comments Download
M components/metrics/metrics_pref_names.cc View 4 chunks +34 lines, -0 lines 0 comments Download
A components/metrics/stability_metrics_helper.h View 1 2 3 4 5 6 1 chunk +63 lines, -0 lines 0 comments Download
A + components/metrics/stability_metrics_helper.cc View 1 2 3 4 10 chunks +30 lines, -165 lines 0 comments Download
A components/metrics/stability_metrics_helper_unittest.cc View 1 chunk +96 lines, -0 lines 0 comments Download
A + components/metrics/system_memory_stats_recorder.h View 2 chunks +5 lines, -5 lines 0 comments Download
A + components/metrics/system_memory_stats_recorder_linux.cc View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/metrics/system_memory_stats_recorder_win.cc View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 21 (6 generated)
blundell
5 years, 3 months ago (2015-09-23 20:01:54 UTC) #2
blundell
On 2015/09/23 20:01:54, blundell wrote: (note that the failures are unrelated)
5 years, 3 months ago (2015-09-24 07:16:47 UTC) #3
blundell
https://codereview.chromium.org/1366643002/diff/100001/components/metrics/stability_metrics_helper.cc File components/metrics/stability_metrics_helper.cc (right): https://codereview.chromium.org/1366643002/diff/100001/components/metrics/stability_metrics_helper.cc#newcode150 components/metrics/stability_metrics_helper.cc:150: base::RecordAction(base::UserMetricsAction("PageLoad")); One question: I assume ChromeStabilityMetricsProvider is used only ...
5 years, 3 months ago (2015-09-24 07:19:22 UTC) #4
Alexei Svitkine (slow)
I'm wondering, have you considered the inversion the other way? Instead of having the helper ...
5 years, 3 months ago (2015-09-24 15:42:38 UTC) #5
blundell
On 2015/09/24 15:42:38, Alexei Svitkine (slow) wrote: > I'm wondering, have you considered the inversion ...
5 years, 3 months ago (2015-09-24 15:49:32 UTC) #6
blundell
On 2015/09/24 15:49:32, blundell wrote: > On 2015/09/24 15:42:38, Alexei Svitkine (slow) wrote: > > ...
5 years, 3 months ago (2015-09-24 15:55:40 UTC) #7
blundell
Apologies, a rebase snuck into my response to your review. https://codereview.chromium.org/1366643002/diff/100001/chrome/browser/metrics/chrome_stability_metrics_provider.cc File chrome/browser/metrics/chrome_stability_metrics_provider.cc (right): https://codereview.chromium.org/1366643002/diff/100001/chrome/browser/metrics/chrome_stability_metrics_provider.cc#newcode137 ...
5 years, 3 months ago (2015-09-24 16:15:31 UTC) #8
Alexei Svitkine (slow)
LGTM, thanks for the explanation.
5 years, 3 months ago (2015-09-24 16:48:42 UTC) #9
blundell
georgesak@: Could you do an OWNERS review of //chrome/browser/memory? Thanks!
5 years, 2 months ago (2015-09-25 12:55:53 UTC) #11
Georges Khalil
//chrome/browser/memory LGTM
5 years, 2 months ago (2015-09-25 13:47:31 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1366643002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1366643002/120001
5 years, 2 months ago (2015-09-25 13:48:38 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/73802) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 2 months ago (2015-09-25 13:50:50 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1366643002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1366643002/140001
5 years, 2 months ago (2015-09-28 07:16:30 UTC) #19
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 2 months ago (2015-09-28 08:34:27 UTC) #20
commit-bot: I haz the power
5 years, 2 months ago (2015-09-28 08:35:09 UTC) #21
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/8ae15621b008c8df6a71af4f6a5a3ff28b6131d0
Cr-Commit-Position: refs/heads/master@{#351036}

Powered by Google App Engine
This is Rietveld 408576698