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

Issue 1411593004: Eliminate //chrome dependencies from MetricsServicesManager (Closed)

Created:
5 years, 2 months ago by blundell
Modified:
4 years, 11 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

Eliminate //chrome dependencies from MetricsServicesManager This CL eliminates //chrome dependencies from MetricsServicesManager in preparation for componentizing that file to share with iOS. To do so, we introduce MetricsServicesManagerClient, which encapsulates the embedder information that MetricsServicesManager previously internalized. BUG=508025 TBR=thestig, droger Committed: https://crrev.com/40b14cfa3f3458ae0d6f655886d952389aabc25c Cr-Commit-Position: refs/heads/master@{#355255} Committed: https://crrev.com/fecea528dd9085f28a577add02a6c62e7c4685ce Cr-Commit-Position: refs/heads/master@{#355266}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Rebase #

Patch Set 3 : Response to review #

Total comments: 1

Patch Set 4 : Response to review #

Total comments: 6

Patch Set 5 : Fix official build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+317 lines, -129 lines) Patch
M chrome/browser/browser_process_impl.cc View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_accessor.h View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.h View 1 2 3 chunks +2 lines, -8 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.cc View 1 2 2 chunks +5 lines, -1 line 0 comments Download
A chrome/browser/metrics/chrome_metrics_services_manager_client.h View 1 2 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/browser/metrics/chrome_metrics_services_manager_client.cc View 1 2 1 chunk +111 lines, -0 lines 0 comments Download
M chrome/browser/metrics/metrics_services_manager.h View 4 chunks +17 lines, -27 lines 0 comments Download
M chrome/browser/metrics/metrics_services_manager.cc View 1 2 3 4 4 chunks +27 lines, -88 lines 0 comments Download
A chrome/browser/metrics/metrics_services_manager_client.h View 1 2 1 chunk +62 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chromecast/browser/metrics/cast_metrics_service_client.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chromecast/browser/metrics/cast_metrics_service_client.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M components/metrics/metrics_service_client.h View 1 2 3 3 chunks +14 lines, -0 lines 0 comments Download
M components/metrics/test_metrics_service_client.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/metrics/test_metrics_service_client.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ios/chrome/browser/metrics/ios_chrome_metrics_service_client.h View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M ios/chrome/browser/metrics/ios_chrome_metrics_service_client.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (11 generated)
blundell
5 years, 2 months ago (2015-10-16 16:12:38 UTC) #2
Alexei Svitkine (slow)
https://codereview.chromium.org/1411593004/diff/1/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/1411593004/diff/1/chrome/browser/browser_process_impl.cc#newcode538 chrome/browser/browser_process_impl.cc:538: if (!metrics_services_manager_) Nit: {}'s https://codereview.chromium.org/1411593004/diff/1/chrome/browser/metrics/chrome_metrics_services_manager_client.cc File chrome/browser/metrics/chrome_metrics_services_manager_client.cc (right): https://codereview.chromium.org/1411593004/diff/1/chrome/browser/metrics/chrome_metrics_services_manager_client.cc#newcode25 ...
5 years, 2 months ago (2015-10-19 16:47:19 UTC) #3
blundell
Thanks! https://codereview.chromium.org/1411593004/diff/1/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/1411593004/diff/1/chrome/browser/browser_process_impl.cc#newcode538 chrome/browser/browser_process_impl.cc:538: if (!metrics_services_manager_) On 2015/10/19 16:47:18, Alexei Svitkine wrote: ...
5 years, 2 months ago (2015-10-20 10:36:45 UTC) #7
Alexei Svitkine (slow)
LGTM https://codereview.chromium.org/1411593004/diff/100001/components/metrics/metrics_service_client.h File components/metrics/metrics_service_client.h (right): https://codereview.chromium.org/1411593004/diff/100001/components/metrics/metrics_service_client.h#newcode37 components/metrics/metrics_service_client.h:37: virtual metrics::MetricsService* GetMetricsService() = 0; Nit: Remove metrics:: ...
5 years, 2 months ago (2015-10-20 15:02:20 UTC) #8
blundell
TBR=thestig for //chrome/browser/browser_process_impl TBR=droger for //ios/chrome
5 years, 2 months ago (2015-10-21 06:16:04 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1411593004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1411593004/120001
5 years, 2 months ago (2015-10-21 06:16:23 UTC) #14
Lei Zhang
On 2015/10/21 06:16:04, blundell wrote: > TBR=thestig for //chrome/browser/browser_process_impl lgtm
5 years, 2 months ago (2015-10-21 06:35:38 UTC) #15
Lei Zhang
Just fix the nits later. https://codereview.chromium.org/1411593004/diff/120001/chrome/browser/metrics/metrics_services_manager_client.h File chrome/browser/metrics/metrics_services_manager_client.h (right): https://codereview.chromium.org/1411593004/diff/120001/chrome/browser/metrics/metrics_services_manager_client.h#newcode9 chrome/browser/metrics/metrics_services_manager_client.h:9: #include "base/callback.h" base/callback_forward.h https://codereview.chromium.org/1411593004/diff/120001/chrome/browser/metrics/metrics_services_manager_client.h#newcode11 ...
5 years, 2 months ago (2015-10-21 06:36:01 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:120001)
5 years, 2 months ago (2015-10-21 07:42:43 UTC) #17
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/40b14cfa3f3458ae0d6f655886d952389aabc25c Cr-Commit-Position: refs/heads/master@{#355255}
5 years, 2 months ago (2015-10-21 07:43:27 UTC) #18
vasilii
A revert of this CL (patchset #4 id:120001) has been created in https://codereview.chromium.org/1418763002/ by vasilii@chromium.org. ...
5 years, 2 months ago (2015-10-21 08:33:30 UTC) #19
blundell
PS5 has the fix for the official build. Going to reland. Will address thestig's nits ...
5 years, 2 months ago (2015-10-21 09:15:35 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1411593004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1411593004/140001
5 years, 2 months ago (2015-10-21 09:16:29 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:140001)
5 years, 2 months ago (2015-10-21 10:10:33 UTC) #25
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/fecea528dd9085f28a577add02a6c62e7c4685ce Cr-Commit-Position: refs/heads/master@{#355266}
5 years, 2 months ago (2015-10-21 10:11:22 UTC) #26
droger
lgtm
5 years, 2 months ago (2015-10-21 15:40:15 UTC) #27
blundell
On 2015/10/21 06:36:01, Lei Zhang (OOO) wrote: > Just fix the nits later. > > ...
4 years, 11 months ago (2016-01-22 10:30:10 UTC) #28
blundell
4 years, 11 months ago (2016-01-22 10:30:24 UTC) #29
Message was sent while issue was closed.
https://codereview.chromium.org/1411593004/diff/120001/chrome/browser/metrics...
File chrome/browser/metrics/metrics_services_manager_client.h (right):

https://codereview.chromium.org/1411593004/diff/120001/chrome/browser/metrics...
chrome/browser/metrics/metrics_services_manager_client.h:9: #include
"base/callback.h"
On 2015/10/21 06:36:01, Lei Zhang (OOO) wrote:
> base/callback_forward.h

Done.

https://codereview.chromium.org/1411593004/diff/120001/chrome/browser/metrics...
chrome/browser/metrics/metrics_services_manager_client.h:11: #include
"base/threading/thread_checker.h"
On 2015/10/21 06:36:01, Lei Zhang (OOO) wrote:
> not used

Done.

https://codereview.chromium.org/1411593004/diff/120001/chrome/browser/metrics...
chrome/browser/metrics/metrics_services_manager_client.h:14: class
MetricsService;
On 2015/10/21 06:36:01, Lei Zhang (OOO) wrote:
> not referenced

Done.

Powered by Google App Engine
This is Rietveld 408576698