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

Issue 284293003: [Metrics] Make MetricsStateManager take a callback param to check if UMA is enabled. (Closed)

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

Description

[Metrics] Make MetricsStateManager take a callback param to check if UMA is enabled. Also, remove a no longer needed testing pref. BUG=374296 TEST=compiles R=asvitkine@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271798

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix unit tests #

Total comments: 2

Patch Set 3 : Remove no longer necessary switch (woohoo!) #

Total comments: 6

Patch Set 4 : Fix compile #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -58 lines) Patch
M chrome/browser/metrics/metrics_service_unittest.cc View 1 2 3 4 4 chunks +13 lines, -7 lines 0 comments Download
M chrome/browser/metrics/metrics_services_manager.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/metrics/metrics_services_manager.cc View 1 2 3 2 chunks +34 lines, -2 lines 0 comments Download
M chrome/browser/metrics/metrics_state_manager.h View 1 2 3 4 5 chunks +14 lines, -8 lines 0 comments Download
M chrome/browser/metrics/metrics_state_manager.cc View 1 2 3 4 4 chunks +11 lines, -29 lines 0 comments Download
M chrome/browser/metrics/metrics_state_manager_unittest.cc View 1 3 chunks +18 lines, -5 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Ilya Sherman
6 years, 7 months ago (2014-05-19 13:52:38 UTC) #1
Alexei Svitkine (slow)
LGTM, thanks https://codereview.chromium.org/284293003/diff/1/chrome/browser/metrics/metrics_state_manager.h File chrome/browser/metrics/metrics_state_manager.h (right): https://codereview.chromium.org/284293003/diff/1/chrome/browser/metrics/metrics_state_manager.h#newcode110 chrome/browser/metrics/metrics_state_manager.h:110: PrefService* const local_state_; Nit: I don't think ...
6 years, 7 months ago (2014-05-19 14:00:11 UTC) #2
Ilya Sherman
https://codereview.chromium.org/284293003/diff/1/chrome/browser/metrics/metrics_state_manager.h File chrome/browser/metrics/metrics_state_manager.h (right): https://codereview.chromium.org/284293003/diff/1/chrome/browser/metrics/metrics_state_manager.h#newcode110 chrome/browser/metrics/metrics_state_manager.h:110: PrefService* const local_state_; On 2014/05/19 14:00:11, Alexei Svitkine wrote: ...
6 years, 7 months ago (2014-05-19 14:03:36 UTC) #3
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 7 months ago (2014-05-19 14:03:39 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/284293003/1
6 years, 7 months ago (2014-05-19 14:04:08 UTC) #5
Ilya Sherman
/cc Colin
6 years, 7 months ago (2014-05-19 15:05:13 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-19 19:06:25 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-19 19:33:59 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg/builds/185622)
6 years, 7 months ago (2014-05-19 19:34:01 UTC) #9
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 7 months ago (2014-05-20 09:10:46 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/284293003/20001
6 years, 7 months ago (2014-05-20 09:11:21 UTC) #11
Ilya Sherman
The CQ bit was unchecked by isherman@chromium.org
6 years, 7 months ago (2014-05-20 09:13:02 UTC) #12
Ilya Sherman
Alexei, mind taking another look? I updated a couple of test files to fix bustage.
6 years, 7 months ago (2014-05-20 09:13:40 UTC) #13
Alexei Svitkine (slow)
https://codereview.chromium.org/284293003/diff/20001/chrome/browser/metrics/metrics_services_manager.cc File chrome/browser/metrics/metrics_services_manager.cc (right): https://codereview.chromium.org/284293003/diff/20001/chrome/browser/metrics/metrics_services_manager.cc#newcode24 chrome/browser/metrics/metrics_services_manager.cc:24: if (command_line->HasSwitch(switches::kEnableMetricsReportingForTesting)) I think this can be removed now ...
6 years, 7 months ago (2014-05-20 09:26:52 UTC) #14
Ilya Sherman
https://codereview.chromium.org/284293003/diff/20001/chrome/browser/metrics/metrics_services_manager.cc File chrome/browser/metrics/metrics_services_manager.cc (right): https://codereview.chromium.org/284293003/diff/20001/chrome/browser/metrics/metrics_services_manager.cc#newcode24 chrome/browser/metrics/metrics_services_manager.cc:24: if (command_line->HasSwitch(switches::kEnableMetricsReportingForTesting)) On 2014/05/20 09:26:53, Alexei Svitkine wrote: > ...
6 years, 7 months ago (2014-05-20 09:32:21 UTC) #15
Alexei Svitkine (slow)
not lgtm, found some things I missed before Also, please update CL description to mention ...
6 years, 7 months ago (2014-05-20 09:36:13 UTC) #16
Ilya Sherman
Updated CL description as well. https://codereview.chromium.org/284293003/diff/40001/chrome/browser/metrics/metrics_services_manager.cc File chrome/browser/metrics/metrics_services_manager.cc (right): https://codereview.chromium.org/284293003/diff/40001/chrome/browser/metrics/metrics_services_manager.cc#newcode23 chrome/browser/metrics/metrics_services_manager.cc:23: if (command_line->HasSwitch(switches::kForceFieldTrials)) On 2014/05/20 ...
6 years, 7 months ago (2014-05-20 11:34:33 UTC) #17
Alexei Svitkine (slow)
lgtm
6 years, 7 months ago (2014-05-20 12:32:53 UTC) #18
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 7 months ago (2014-05-20 12:33:48 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/284293003/60001
6 years, 7 months ago (2014-05-20 12:34:19 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-20 15:46:09 UTC) #21
commit-bot: I haz the power
Failed to apply patch for chrome/browser/metrics/metrics_service_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 7 months ago (2014-05-20 15:46:10 UTC) #22
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 7 months ago (2014-05-20 15:54:47 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/284293003/80001
6 years, 7 months ago (2014-05-20 15:56:46 UTC) #24
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-20 20:44:37 UTC) #25
commit-bot: I haz the power
6 years, 7 months ago (2014-05-21 01:41:08 UTC) #26
Message was sent while issue was closed.
Change committed as 271798

Powered by Google App Engine
This is Rietveld 408576698