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

Issue 297483008: Refactor HashedExtensionMetrics into ExtensionsMetricsProvider. (Closed)

Created:
6 years, 7 months ago by blundell
Modified:
6 years, 7 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, Ilya Sherman, jar (doing other things), asvitkine+watch_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Refactor HashedExtensionMetrics into ExtensionsMetricsProvider. Transforms HashedExtensionMetrics into a metrics::MetricsProvider, eliminating direct knowledge of this class from MetricsLog. Renames the class to ExtensionsMetricsProvider. Notably, changes the class to take in the MetricsStateManager and later obtain the client ID from the manager rather than directly taking in the ID; this change is necessary because the provider instance is now constructed before the ID is determined. BUG=374225 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272633

Patch Set 1 #

Total comments: 5

Patch Set 2 : Comment nits #

Patch Set 3 : Rebase #

Total comments: 4

Patch Set 4 : Response to review #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -314 lines) Patch
D chrome/browser/metrics/extension_metrics.h View 1 chunk +0 lines, -67 lines 0 comments Download
D chrome/browser/metrics/extension_metrics.cc View 1 chunk +0 lines, -102 lines 0 comments Download
D chrome/browser/metrics/extension_metrics_unittest.cc View 1 chunk +0 lines, -85 lines 0 comments Download
A + chrome/browser/metrics/extensions_metrics_provider.h View 1 2 3 3 chunks +25 lines, -15 lines 0 comments Download
A + chrome/browser/metrics/extensions_metrics_provider.cc View 1 2 3 6 chunks +30 lines, -14 lines 0 comments Download
A + chrome/browser/metrics/extensions_metrics_provider_unittest.cc View 1 2 3 4 3 chunks +38 lines, -18 lines 0 comments Download
M chrome/browser/metrics/metrics_log.h View 1 2 3 4 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/metrics/metrics_log.cc View 1 2 3 4 3 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/metrics/metrics_services_manager.cc View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
blundell
https://codereview.chromium.org/297483008/diff/1/chrome/browser/metrics/extensions_metrics_provider.cc File chrome/browser/metrics/extensions_metrics_provider.cc (right): https://codereview.chromium.org/297483008/diff/1/chrome/browser/metrics/extensions_metrics_provider.cc#newcode92 chrome/browser/metrics/extensions_metrics_provider.cc:92: return metrics::MetricsLogBase::Hash(metrics_state_manager_->client_id()); Do you think it's worth having MetricsLogBase ...
6 years, 7 months ago (2014-05-21 11:02:36 UTC) #1
Alexei Svitkine (slow)
https://codereview.chromium.org/297483008/diff/1/chrome/browser/metrics/extensions_metrics_provider.cc File chrome/browser/metrics/extensions_metrics_provider.cc (right): https://codereview.chromium.org/297483008/diff/1/chrome/browser/metrics/extensions_metrics_provider.cc#newcode92 chrome/browser/metrics/extensions_metrics_provider.cc:92: return metrics::MetricsLogBase::Hash(metrics_state_manager_->client_id()); On 2014/05/21 11:02:37, blundell wrote: > Do ...
6 years, 7 months ago (2014-05-21 12:23:21 UTC) #2
blundell
https://codereview.chromium.org/297483008/diff/1/chrome/browser/metrics/extensions_metrics_provider.cc File chrome/browser/metrics/extensions_metrics_provider.cc (right): https://codereview.chromium.org/297483008/diff/1/chrome/browser/metrics/extensions_metrics_provider.cc#newcode92 chrome/browser/metrics/extensions_metrics_provider.cc:92: return metrics::MetricsLogBase::Hash(metrics_state_manager_->client_id()); On 2014/05/21 12:23:21, Alexei Svitkine wrote: > ...
6 years, 7 months ago (2014-05-21 13:03:29 UTC) #3
Alexei Svitkine (slow)
LGTM!
6 years, 7 months ago (2014-05-21 13:06:14 UTC) #4
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 7 months ago (2014-05-23 12:22:09 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/297483008/80001
6 years, 7 months ago (2014-05-23 12:22:47 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-23 17:12:10 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-23 17:50:49 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/156616)
6 years, 7 months ago (2014-05-23 17:50:49 UTC) #9
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 7 months ago (2014-05-23 20:11:49 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/297483008/80001
6 years, 7 months ago (2014-05-23 20:13:34 UTC) #11
commit-bot: I haz the power
6 years, 7 months ago (2014-05-23 23:28:15 UTC) #12
Message was sent while issue was closed.
Change committed as 272633

Powered by Google App Engine
This is Rietveld 408576698