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

Issue 2938443002: [GRC] UKM Support (Closed)

Created:
3 years, 6 months ago by matthalp
Modified:
3 years, 5 months ago
CC:
chromium-reviews, fmeawad
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[GRC] UKM Support This CL adds UKM support to GRC. Of particular interest is the ability to create UkmEntryBuilders as the ResourceCoordinatorService serves as the UKM client for all of the modules within GRC. There is a software layering issue that prevents making UKM support within GRC straightforward to implement. The UKM service currently lives within the content_browser service which is out-of-scope for the resource_coordinator service to bind to. When UKM will be moved into its own service is TBD, so as a workaround the resource_coordinator_web_contents_observer is used to create the UkmRecorderInterface which is then passed into the resource_coordinator service through a newly added interface: ServiceCallbacks. The ServiceCallbacks will also be used as a stopgap to solve the same layering problem that may occur with services of interest to GRC. Currently, the only module, and main user of this capability, is the CoordinationUnitManager. The intention is to provide an interface for CoordinationUnitManagerObservers (CL link: https://codereview.chromium.org/2926663003) to send metrics to UKM. Note that the exact name for CoordinationUnitMangerObservers is still TBD. Design Doc Link: https://docs.google.com/document/d/1p03qPe0mwkUcY9t9drbUucSDYsScgpIXxGPbDQIcvkk/edit R=*dcheng@chromium.org,*holte@chromium.org,nasko@chromium.org,*oysteine@chromium.org,zhenw@chromium.org,fmeawad@chromium.org BUG=724306 Review-Url: https://codereview.chromium.org/2938443002 Cr-Commit-Position: refs/heads/master@{#482069} Committed: https://chromium.googlesource.com/chromium/src/+/097bcd379f843c5dcb8821d6049fd9e8b6814cfd

Patch Set 1 #

Patch Set 2 : Prevent redundant Ukm interface requests #

Patch Set 3 : Lint and format #

Patch Set 4 : Add methods to create UkmEntryBuilders #

Patch Set 5 : Format #

Patch Set 6 : Refactoring #

Patch Set 7 : Update deps #

Patch Set 8 : Add build dependency #

Patch Set 9 : Add build dependency for mojo interface #

Patch Set 10 : Add build dependency for mojo interface #

Patch Set 11 : Rebase #

Patch Set 12 : Add interface dep #

Patch Set 13 : Add interface dep #

Patch Set 14 : Add interface dep #

Patch Set 15 : Rebase #

Patch Set 16 : Add interface deps #

Patch Set 17 : Remove service test (temporarily) #

Patch Set 18 : Remove service test (temporarily) #

Patch Set 19 : Add back service test #

Patch Set 20 : Debugging #

Patch Set 21 : Remove upstream #

Patch Set 22 : Add dep #

Patch Set 23 : Fix bug in MojoUkmRecorder #

Patch Set 24 : Refactor #

Patch Set 25 : Refactor #

Patch Set 26 : Refactor #

Total comments: 10

Patch Set 27 : Address reviewer feedback and rebase #

Total comments: 11

Patch Set 28 : Address reviewer feedback #

Patch Set 29 : Isolate UKM capability #

Patch Set 30 : Rebase #

Total comments: 4

Patch Set 31 : Address reviewer feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -14 lines) Patch
M chrome/browser/chrome_content_browser_manifest_overlay.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/resource_coordinator/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resource_coordinator/resource_coordinator_web_contents_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 4 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/resource_coordinator/resource_coordinator_web_contents_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +53 lines, -2 lines 0 comments Download
M components/ukm/public/mojo_ukm_recorder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +3 lines, -2 lines 0 comments Download
M components/ukm/public/mojo_ukm_recorder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +1 line, -1 line 0 comments Download
M components/ukm/public/ukm_recorder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 3 chunks +7 lines, -0 lines 0 comments Download
M content/public/app/mojo/content_browser_manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 2 chunks +2 lines, -3 lines 0 comments Download
M services/resource_coordinator/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +3 lines, -0 lines 0 comments Download
M services/resource_coordinator/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M services/resource_coordinator/coordination_unit/coordination_unit_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 4 chunks +13 lines, -0 lines 0 comments Download
M services/resource_coordinator/coordination_unit/coordination_unit_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +13 lines, -1 line 0 comments Download
M services/resource_coordinator/manifest.json View 1 chunk +2 lines, -1 line 0 comments Download
M services/resource_coordinator/public/interfaces/BUILD.gn View 1 2 3 4 5 6 7 8 12 1 chunk +2 lines, -0 lines 0 comments Download
A services/resource_coordinator/public/interfaces/service_callbacks.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +29 lines, -0 lines 0 comments Download
M services/resource_coordinator/resource_coordinator_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +10 lines, -0 lines 0 comments Download
M services/resource_coordinator/resource_coordinator_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 3 chunks +11 lines, -3 lines 0 comments Download
A services/resource_coordinator/service_callbacks_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +52 lines, -0 lines 0 comments Download
A services/resource_coordinator/service_callbacks_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +50 lines, -0 lines 0 comments Download

Messages

Total messages: 131 (110 generated)
matthalp
3 years, 6 months ago (2017-06-12 18:52:38 UTC) #5
matthalp
+nasko services/resource_coordinator/public/interfaces/service_callbacks.mojom - Create interface to register service callbacks due to layering issues (see comments) ...
3 years, 6 months ago (2017-06-14 23:26:45 UTC) #79
nasko
I'm still not fully confident in my abilities to competently review service manifest changes. Since ...
3 years, 6 months ago (2017-06-16 15:51:39 UTC) #88
Steven Holte
The UKM changes lgtm, but be aware of https://chromium-review.googlesource.com/c/536933/ Which will move these files to ...
3 years, 6 months ago (2017-06-16 20:09:41 UTC) #89
matthalp
On 2017/06/16 at 20:09:41, holte wrote: > The UKM changes lgtm, but be aware of ...
3 years, 6 months ago (2017-06-21 02:02:19 UTC) #90
matthalp
On 2017/06/21 at 02:02:19, matthalp wrote: > On 2017/06/16 at 20:09:41, holte wrote: > > ...
3 years, 6 months ago (2017-06-22 17:41:40 UTC) #96
oystein (OOO til 10th of July)
https://codereview.chromium.org/2938443002/diff/490001/chrome/browser/resource_coordinator/DEPS File chrome/browser/resource_coordinator/DEPS (right): https://codereview.chromium.org/2938443002/diff/490001/chrome/browser/resource_coordinator/DEPS#newcode6 chrome/browser/resource_coordinator/DEPS:6: "+content/public/renderer/render_thread.h", Where is this used? I see it included ...
3 years, 6 months ago (2017-06-22 20:27:02 UTC) #97
matthalp
On 2017/06/22 at 20:27:02, oysteine wrote: > https://codereview.chromium.org/2938443002/diff/490001/chrome/browser/resource_coordinator/DEPS > File chrome/browser/resource_coordinator/DEPS (right): > > https://codereview.chromium.org/2938443002/diff/490001/chrome/browser/resource_coordinator/DEPS#newcode6 ...
3 years, 6 months ago (2017-06-22 22:59:19 UTC) #100
matthalp
https://codereview.chromium.org/2938443002/diff/490001/chrome/browser/resource_coordinator/DEPS File chrome/browser/resource_coordinator/DEPS (right): https://codereview.chromium.org/2938443002/diff/490001/chrome/browser/resource_coordinator/DEPS#newcode6 chrome/browser/resource_coordinator/DEPS:6: "+content/public/renderer/render_thread.h", On 2017/06/22 at 20:27:02, oystein wrote: > Where ...
3 years, 6 months ago (2017-06-22 22:59:31 UTC) #101
dcheng
https://codereview.chromium.org/2938443002/diff/510001/content/public/app/mojo/content_browser_manifest.json File content/public/app/mojo/content_browser_manifest.json (right): https://codereview.chromium.org/2938443002/diff/510001/content/public/app/mojo/content_browser_manifest.json#newcode60 content/public/app/mojo/content_browser_manifest.json:60: // TODO(matthalp,oysteine,holte) isolate ukm capabilities from the render Nit: ...
3 years, 5 months ago (2017-06-23 16:10:35 UTC) #104
matthalp
holte could you comment on dcheng's comment in content/public/app/mojo/content_browser_manifest.json? Is there an easy way to ...
3 years, 5 months ago (2017-06-23 16:36:28 UTC) #105
Steven Holte
https://codereview.chromium.org/2938443002/diff/510001/content/public/app/mojo/content_browser_manifest.json File content/public/app/mojo/content_browser_manifest.json (right): https://codereview.chromium.org/2938443002/diff/510001/content/public/app/mojo/content_browser_manifest.json#newcode63 content/public/app/mojo/content_browser_manifest.json:63: "content_browser": [ "ash", "display", "memory_instrumentation", "renderer" ], On 2017/06/23 ...
3 years, 5 months ago (2017-06-23 18:11:02 UTC) #106
matthalp
I created a separate UKM capability. holte, dcheng PTAL
3 years, 5 months ago (2017-06-23 18:27:11 UTC) #109
oystein (OOO til 10th of July)
lgtm
3 years, 5 months ago (2017-06-23 19:18:43 UTC) #114
dcheng
https://codereview.chromium.org/2938443002/diff/510001/services/resource_coordinator/service_callbacks_impl.cc File services/resource_coordinator/service_callbacks_impl.cc (right): https://codereview.chromium.org/2938443002/diff/510001/services/resource_coordinator/service_callbacks_impl.cc#newcode19 services/resource_coordinator/service_callbacks_impl.cc:19: : service_ref_factory_(service_ref_factory), On 2017/06/23 16:36:28, matthalp wrote: > On ...
3 years, 5 months ago (2017-06-23 21:32:32 UTC) #117
matthalp
dcheng, Thanks for the quick turnaround. I've addressed your latest feedback. https://codereview.chromium.org/2938443002/diff/510001/services/resource_coordinator/service_callbacks_impl.cc File services/resource_coordinator/service_callbacks_impl.cc (right): ...
3 years, 5 months ago (2017-06-23 21:56:13 UTC) #118
dcheng
It makes me a little sad that we have to do this dance to get ...
3 years, 5 months ago (2017-06-23 22:14:37 UTC) #121
dcheng
(oops meant to type lgtm as well)
3 years, 5 months ago (2017-06-23 22:14:51 UTC) #122
chromium-reviews
Agreed. Fortunately, the UKM folks are aware and working on it. On Fri, Jun 23, ...
3 years, 5 months ago (2017-06-23 22:17:34 UTC) #123
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2938443002/590001
3 years, 5 months ago (2017-06-23 23:22:17 UTC) #128
commit-bot: I haz the power
3 years, 5 months ago (2017-06-23 23:26:46 UTC) #131
Message was sent while issue was closed.
Committed patchset #31 (id:590001) as
https://chromium.googlesource.com/chromium/src/+/097bcd379f843c5dcb8821d6049f...

Powered by Google App Engine
This is Rietveld 408576698