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

Issue 282093012: Remove dependencies of Metrics{Service,Log} on g_browser_process->local_state() (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

Remove dependencies of Metrics{Service,Log} on g_browser_process->local_state() This CL changes MetricsService and MetricsLog to take in a |local_state| param in their constructors. It additionally changes several static MetricsService functions to take in a |local_state| param. BUG=374299, 374300 TBR=jochen Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272833

Patch Set 1 #

Patch Set 2 : Remove cruft #

Total comments: 8

Patch Set 3 : Response to review #

Patch Set 4 : Revert changes to MetricsServiceHelper #

Patch Set 5 : Response to review #

Patch Set 6 : Rebase #

Patch Set 7 : Fixes for Android #

Patch Set 8 : Rebase #

Patch Set 9 : Rebase #

Patch Set 10 : Rebase #

Patch Set 11 : Nits #

Patch Set 12 : Rebase #

Patch Set 13 : Fix tests #

Patch Set 14 : Android compile fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -177 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 9 6 chunks +11 lines, -6 lines 0 comments Download
M chrome/browser/metrics/metrics_log.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/metrics/metrics_log.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +10 lines, -12 lines 0 comments Download
M chrome/browser/metrics/metrics_log_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 12 chunks +32 lines, -42 lines 0 comments Download
M chrome/browser/metrics/metrics_service.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +12 lines, -7 lines 0 comments Download
M chrome/browser/metrics/metrics_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 16 chunks +52 lines, -70 lines 0 comments Download
M chrome/browser/metrics/metrics_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 11 chunks +50 lines, -34 lines 0 comments Download
M chrome/browser/metrics/metrics_services_manager.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 58 (0 generated)
blundell
6 years, 7 months ago (2014-05-19 13:00:23 UTC) #1
Alexei Svitkine (slow)
https://codereview.chromium.org/282093012/diff/20001/chrome/browser/metrics/metrics_service.cc File chrome/browser/metrics/metrics_service.cc (right): https://codereview.chromium.org/282093012/diff/20001/chrome/browser/metrics/metrics_service.cc#newcode1104 chrome/browser/metrics/metrics_service.cc:1104: if (!local_state_) { Nit: Shouldn't be possible - just ...
6 years, 7 months ago (2014-05-19 13:13:53 UTC) #2
blundell
https://codereview.chromium.org/282093012/diff/20001/chrome/browser/metrics/metrics_service.cc File chrome/browser/metrics/metrics_service.cc (right): https://codereview.chromium.org/282093012/diff/20001/chrome/browser/metrics/metrics_service.cc#newcode1104 chrome/browser/metrics/metrics_service.cc:1104: if (!local_state_) { On 2014/05/19 13:13:54, Alexei Svitkine wrote: ...
6 years, 7 months ago (2014-05-19 13:49:28 UTC) #3
Alexei Svitkine (slow)
https://codereview.chromium.org/282093012/diff/20001/chrome/browser/metrics/metrics_service.h File chrome/browser/metrics/metrics_service.h (right): https://codereview.chromium.org/282093012/diff/20001/chrome/browser/metrics/metrics_service.h#newcode640 chrome/browser/metrics/metrics_service.h:640: static bool IsMetricsReportingEnabled(const PrefService* local_state); On 2014/05/19 13:49:28, blundell ...
6 years, 7 months ago (2014-05-19 13:53:44 UTC) #4
blundell
Thanks! Reverted MetricsServiceHelper changes and changed the tests to register only the metrics-specific prefs.
6 years, 7 months ago (2014-05-19 14:50:35 UTC) #5
Alexei Svitkine (slow)
lgtm
6 years, 7 months ago (2014-05-19 15:01:55 UTC) #6
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 7 months ago (2014-05-19 15:08:06 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/282093012/80001
6 years, 7 months ago (2014-05-19 15:08:34 UTC) #8
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 18:40:21 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-19 18:43:13 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/68448)
6 years, 7 months ago (2014-05-19 18:43:13 UTC) #11
blundell
TBR=jochen for chrome_browser_main
6 years, 7 months ago (2014-05-20 05:28:58 UTC) #12
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 7 months ago (2014-05-20 05:29:03 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/282093012/80001
6 years, 7 months ago (2014-05-20 05:29:41 UTC) #14
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 05:50:51 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-20 05:53:47 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/28755)
6 years, 7 months ago (2014-05-20 05:53:47 UTC) #17
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 7 months ago (2014-05-20 07:48:54 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/282093012/70009
6 years, 7 months ago (2014-05-20 07:49:28 UTC) #19
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 11:09:39 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 11:38:10 UTC) #21
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/185958)
6 years, 7 months ago (2014-05-20 11:38:10 UTC) #22
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 7 months ago (2014-05-20 11:44:46 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/282093012/100001
6 years, 7 months ago (2014-05-20 11:45:07 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 14:52:04 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-20 14:54:50 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/28892)
6 years, 7 months ago (2014-05-20 14:54:51 UTC) #27
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 7 months ago (2014-05-20 18:59:57 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/282093012/120001
6 years, 7 months ago (2014-05-20 19:01:50 UTC) #29
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 19:55:48 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-20 20:06:33 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_rel/builds/17976)
6 years, 7 months ago (2014-05-20 20:06:34 UTC) #32
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 7 months ago (2014-05-20 22:06:21 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/282093012/140001
6 years, 7 months ago (2014-05-20 22:07:55 UTC) #34
jochen (gone - plz use gerrit)
lgtm
6 years, 7 months ago (2014-05-21 08:47:31 UTC) #35
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-21 20:02:17 UTC) #36
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 00:47:45 UTC) #37
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/155562)
6 years, 7 months ago (2014-05-22 00:47:46 UTC) #38
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 7 months ago (2014-05-22 07:52:50 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/282093012/140001
6 years, 7 months ago (2014-05-22 07:55:50 UTC) #40
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-22 08:17:49 UTC) #41
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 08:25:21 UTC) #42
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/155562)
6 years, 7 months ago (2014-05-22 08:25:22 UTC) #43
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 7 months ago (2014-05-22 13:50:20 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/282093012/140001
6 years, 7 months ago (2014-05-22 13:50:50 UTC) #45
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-22 13:57:59 UTC) #46
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 14:16:29 UTC) #47
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/155562)
6 years, 7 months ago (2014-05-22 14:16:30 UTC) #48
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 7 months ago (2014-05-25 09:36:34 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/282093012/220001
6 years, 7 months ago (2014-05-25 09:36:40 UTC) #50
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 7 months ago (2014-05-25 10:28:31 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/282093012/240001
6 years, 7 months ago (2014-05-25 10:28:46 UTC) #52
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-25 13:27:44 UTC) #53
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-25 13:32:13 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_aosp/builds/77491)
6 years, 7 months ago (2014-05-25 13:32:14 UTC) #55
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 7 months ago (2014-05-26 05:53:49 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/282093012/240001
6 years, 7 months ago (2014-05-26 05:53:59 UTC) #57
commit-bot: I haz the power
6 years, 7 months ago (2014-05-26 15:59:36 UTC) #58
Message was sent while issue was closed.
Change committed as 272833

Powered by Google App Engine
This is Rietveld 408576698