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

Issue 2958133003: Enable GRC

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

Description

Enable GRC (landing for zhenw@; original CL: https://codereview.chromium.org/2943563002) This CL enables GlobalResourceCoordinator by default. Several projects are depending on GRC service. For features using GRC, they should be guarded by their own feature flags and run their own finch trials. R=zhenw@chromium.org,lpy@chromium.org TBR=oysteine@chromium.org BUG=691886

Patch Set 1 #

Total comments: 1

Patch Set 2 : Modify check #

Patch Set 3 : Rebase #

Total comments: 4

Patch Set 4 : Fix service name comparison #

Patch Set 5 : Revert to original CL #

Patch Set 6 : Remove NOTREACHED macro #

Patch Set 7 : Add resource_coordinator dep #

Patch Set 8 : Rebase #

Patch Set 9 : Initialize dummy mojo interface #

Patch Set 10 : Test disabling unused code #

Patch Set 11 : Rebase #

Patch Set 12 : Register mojo interface on correct thread #

Patch Set 13 : Disable process coordination unit #

Patch Set 14 : Disable cpu profiling for non-linux platforms #

Patch Set 15 : Add more platform guards #

Patch Set 16 : Rebase #

Patch Set 17 : Add more platform-specific guards #

Patch Set 18 : Add more platform-specific guards #

Patch Set 19 : Rebase #

Patch Set 20 : Rebase #

Patch Set 21 : Improve check for creating FrameResourceCoordinator #

Patch Set 22 : Change FrameResourceCoordinator creation semantics #

Patch Set 23 : Fix syntax error #

Patch Set 24 : Disable FrameResourceCoordinator #

Patch Set 25 : Add content_plugin to registry #

Patch Set 26 : Rebase #

Patch Set 27 : Remove CPU profiling from ProcessCoordinationUnitImpl #

Patch Set 28 : Remove unused code #

Patch Set 29 : Disable resource_coordinator #

Patch Set 30 : Only enable the resource_coordinator service #

Patch Set 31 : Add ResourceCoordinatorWebContentsObserver back (slowly) #

Patch Set 32 : Allow tab interface to be created #

Patch Set 33 : Add back service callbacks #

Patch Set 34 : Add back service callbacks #

Patch Set 35 : Add frame resource coordinator interface back #

Patch Set 36 : Add process resource coordinator interface back #

Patch Set 37 : Rebase #

Patch Set 38 : Rebase #

Patch Set 39 : Add dependent CL and rebase #

Patch Set 40 : Fix browser manifest #

Patch Set 41 : Remove newline #

Patch Set 42 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -122 lines) Patch
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 27 28 29 30 31 32 33 34 35 36 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_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 31 32 33 34 35 36 37 38 3 chunks +8 lines, -10 lines 0 comments Download
M content/public/test/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 27 28 29 30 31 32 33 34 35 36 1 chunk +1 line, -0 lines 0 comments Download
M content/public/test/mock_render_process_host.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M content/public/test/mock_render_process_host.cc View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -2 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 27 1 chunk +0 lines, -1 line 0 comments Download
M services/resource_coordinator/coordination_unit/process_coordination_unit_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 2 chunks +0 lines, -7 lines 0 comments Download
M services/resource_coordinator/coordination_unit/process_coordination_unit_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 2 chunks +1 line, -50 lines 0 comments Download
M services/resource_coordinator/coordination_unit/process_coordination_unit_impl_unittest.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 +0 lines, -38 lines 0 comments Download
M services/resource_coordinator/public/cpp/resource_coordinator_features.cc View 29 1 chunk +1 line, -1 line 0 comments Download
M services/resource_coordinator/public/cpp/resource_coordinator_interface.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 31 32 33 34 35 36 37 38 1 chunk +0 lines, -3 lines 0 comments Download
M services/resource_coordinator/public/cpp/resource_coordinator_interface.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 31 32 33 34 35 36 37 38 1 chunk +0 lines, -9 lines 0 comments Download

Messages

Total messages: 148 (131 generated)
lpy
lgtm Does it mean IsEnable always returns false for unittest? Why did it fail before?
3 years, 5 months ago (2017-06-28 17:57:32 UTC) #8
zhenw
Are currently failing ones still related to enabling GRC? https://codereview.chromium.org/2958133003/diff/1/chrome/browser/resource_coordinator/resource_coordinator_web_contents_observer.cc File chrome/browser/resource_coordinator/resource_coordinator_web_contents_observer.cc (right): https://codereview.chromium.org/2958133003/diff/1/chrome/browser/resource_coordinator/resource_coordinator_web_contents_observer.cc#newcode80 chrome/browser/resource_coordinator/resource_coordinator_web_contents_observer.cc:80: ...
3 years, 5 months ago (2017-06-28 18:06:57 UTC) #10
matthalp
On 2017/06/28 at 18:06:57, zhenw wrote: > Are currently failing ones still related to enabling ...
3 years, 5 months ago (2017-06-28 18:22:58 UTC) #11
matthalp
PTAL: I found a simple way to check if the content_browser service is active. This ...
3 years, 5 months ago (2017-06-29 16:19:28 UTC) #19
zhenw
https://codereview.chromium.org/2958133003/diff/40001/chrome/browser/resource_coordinator/resource_coordinator_web_contents_observer.cc File chrome/browser/resource_coordinator/resource_coordinator_web_contents_observer.cc (right): https://codereview.chromium.org/2958133003/diff/40001/chrome/browser/resource_coordinator/resource_coordinator_web_contents_observer.cc#newcode84 chrome/browser/resource_coordinator/resource_coordinator_web_contents_observer.cc:84: content::mojom::kBrowserServiceName && Just to confirm my understanding. So this ...
3 years, 5 months ago (2017-06-29 16:28:30 UTC) #21
matthalp
https://codereview.chromium.org/2958133003/diff/40001/chrome/browser/resource_coordinator/resource_coordinator_web_contents_observer.cc File chrome/browser/resource_coordinator/resource_coordinator_web_contents_observer.cc (right): https://codereview.chromium.org/2958133003/diff/40001/chrome/browser/resource_coordinator/resource_coordinator_web_contents_observer.cc#newcode84 chrome/browser/resource_coordinator/resource_coordinator_web_contents_observer.cc:84: content::mojom::kBrowserServiceName && On 2017/06/29 at 16:28:30, zhenw wrote: > ...
3 years, 5 months ago (2017-06-29 16:35:09 UTC) #22
Zhen Wang
lgtm +rockot https://codereview.chromium.org/2958133003/diff/40001/chrome/browser/resource_coordinator/resource_coordinator_web_contents_observer.h File chrome/browser/resource_coordinator/resource_coordinator_web_contents_observer.h (right): https://codereview.chromium.org/2958133003/diff/40001/chrome/browser/resource_coordinator/resource_coordinator_web_contents_observer.h#newcode24 chrome/browser/resource_coordinator/resource_coordinator_web_contents_observer.h:24: static bool ShouldCreate(content::WebContents* web_contents); nit: The name ...
3 years, 5 months ago (2017-06-29 16:43:19 UTC) #26
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2958133003/diff/40001/chrome/browser/resource_coordinator/resource_coordinator_web_contents_observer.cc File chrome/browser/resource_coordinator/resource_coordinator_web_contents_observer.cc (right): https://codereview.chromium.org/2958133003/diff/40001/chrome/browser/resource_coordinator/resource_coordinator_web_contents_observer.cc#newcode84 chrome/browser/resource_coordinator/resource_coordinator_web_contents_observer.cc:84: content::mojom::kBrowserServiceName && On 2017/06/29 at 16:35:08, matthalp wrote: > ...
3 years, 5 months ago (2017-06-29 16:51:24 UTC) #27
matthalp
On 2017/06/29 at 16:51:24, rockot wrote: > https://codereview.chromium.org/2958133003/diff/40001/chrome/browser/resource_coordinator/resource_coordinator_web_contents_observer.cc > File chrome/browser/resource_coordinator/resource_coordinator_web_contents_observer.cc (right): > > https://codereview.chromium.org/2958133003/diff/40001/chrome/browser/resource_coordinator/resource_coordinator_web_contents_observer.cc#newcode84 ...
3 years, 5 months ago (2017-06-29 17:14:20 UTC) #28
Ken Rockot(use gerrit already)
On 2017/06/29 at 17:14:20, matthalp wrote: > On 2017/06/29 at 16:51:24, rockot wrote: > > ...
3 years, 5 months ago (2017-06-29 17:26:09 UTC) #31
chromium-reviews
I agree that this introduces an implicit dependency on the MockRPH, but just wanted to ...
3 years, 5 months ago (2017-06-29 17:33:57 UTC) #32
matthalp
On 2017/06/29 at 17:33:57, chromium-reviews wrote: > I agree that this introduces an implicit dependency ...
3 years, 5 months ago (2017-06-29 18:30:04 UTC) #33
Ken Rockot(use gerrit already)
I'm not understanding something: what's wrong with content depending on the resource_coordinator client library? Isn't ...
3 years, 5 months ago (2017-06-29 19:39:46 UTC) #34
matthalp
rockot: (1) Adding services/* code to content/* was not a problem. Could you check that ...
3 years, 5 months ago (2017-06-30 22:31:33 UTC) #45
Ken Rockot(use gerrit already)
lgtm
3 years, 5 months ago (2017-06-30 22:37:11 UTC) #46
Ken Rockot(use gerrit already)
On 2017/06/30 at 22:37:11, Ken Rockot(use gerrit already) wrote: > lgtm (All seems fine to ...
3 years, 5 months ago (2017-06-30 22:37:25 UTC) #47
Zhen Wang
3 years, 5 months ago (2017-06-30 22:51:54 UTC) #48
Thanks, Matt! lgtm stamp

Powered by Google App Engine
This is Rietveld 408576698