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

Issue 2643183002: Convert ChromeViewHostMsg_UpdatedCacheStats to use mojo. (Closed)

Created:
3 years, 11 months ago by nigeltao1
Modified:
3 years, 7 months ago
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert ChromeViewHostMsg_UpdatedCacheStats to use mojo. BUG=577685 Review-Url: https://codereview.chromium.org/2643183002 Cr-Commit-Position: refs/heads/master@{#468234} Committed: https://chromium.googlesource.com/chromium/src/+/beff0a104dbf869114f66db3efc2d52094050971

Patch Set 1 #

Total comments: 4

Patch Set 2 : Convert ChromeViewHostMsg_UpdatedCacheStats to use mojo. #

Total comments: 2

Patch Set 3 : Convert ChromeViewHostMsg_UpdatedCacheStats to use mojo. #

Total comments: 1

Patch Set 4 : Convert ChromeViewHostMsg_UpdatedCacheStats to use mojo. #

Total comments: 1

Patch Set 5 : Convert ChromeViewHostMsg_UpdatedCacheStats to use mojo. #

Patch Set 6 : Convert ChromeViewHostMsg_UpdatedCacheStats to use mojo. #

Patch Set 7 : Convert ChromeViewHostMsg_UpdatedCacheStats to use mojo. #

Patch Set 8 : Convert ChromeViewHostMsg_UpdatedCacheStats to use mojo. #

Total comments: 2

Patch Set 9 : Convert ChromeViewHostMsg_UpdatedCacheStats to use mojo. #

Patch Set 10 : Convert ChromeViewHostMsg_UpdatedCacheStats to use mojo. #

Total comments: 4

Patch Set 11 : Convert ChromeViewHostMsg_UpdatedCacheStats to use mojo. #

Total comments: 2

Patch Set 12 : Convert ChromeViewHostMsg_UpdatedCacheStats to use mojo. #

Total comments: 4

Patch Set 13 : Convert ChromeViewHostMsg_UpdatedCacheStats to use mojo. #

Total comments: 4

Patch Set 14 : Convert ChromeViewHostMsg_UpdatedCacheStats to use mojo. #

Total comments: 1

Patch Set 15 : Convert ChromeViewHostMsg_UpdatedCacheStats to use mojo. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -27 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/cache_stats_recorder.h View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/browser/cache_stats_recorder.cc View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_manifest_overlay.json View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +2 lines, -11 lines 0 comments Download
M chrome/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/cache_stats_recorder.mojom View 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/renderer/chrome_render_thread_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +9 lines, -3 lines 0 comments Download
M chromecast/browser/cast_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chromecast/browser/cast_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +8 lines, -0 lines 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 4 chunks +17 lines, -8 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_content_browser_client.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_content_browser_client.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 81 (35 generated)
nigeltao1
3 years, 11 months ago (2017-01-20 06:00:22 UTC) #2
Sam McNally
https://codereview.chromium.org/2643183002/diff/1/chrome/browser/cache_stats_recorder.h File chrome/browser/cache_stats_recorder.h (right): https://codereview.chromium.org/2643183002/diff/1/chrome/browser/cache_stats_recorder.h#newcode23 chrome/browser/cache_stats_recorder.h:23: int render_process_id_; const https://codereview.chromium.org/2643183002/diff/1/chrome/renderer/chrome_render_thread_observer.cc File chrome/renderer/chrome_render_thread_observer.cc (right): https://codereview.chromium.org/2643183002/diff/1/chrome/renderer/chrome_render_thread_observer.cc#newcode121 chrome/renderer/chrome_render_thread_observer.cc:121: ...
3 years, 11 months ago (2017-01-24 04:06:15 UTC) #3
nigeltao1
https://codereview.chromium.org/2643183002/diff/1/chrome/browser/cache_stats_recorder.h File chrome/browser/cache_stats_recorder.h (right): https://codereview.chromium.org/2643183002/diff/1/chrome/browser/cache_stats_recorder.h#newcode23 chrome/browser/cache_stats_recorder.h:23: int render_process_id_; On 2017/01/24 04:06:15, Sam McNally wrote: > ...
3 years, 10 months ago (2017-02-02 05:20:59 UTC) #4
Sam McNally
lgtm https://codereview.chromium.org/2643183002/diff/20001/chrome/renderer/chrome_render_thread_observer.cc File chrome/renderer/chrome_render_thread_observer.cc (right): https://codereview.chromium.org/2643183002/diff/20001/chrome/renderer/chrome_render_thread_observer.cc#newcode121 chrome/renderer/chrome_render_thread_observer.cc:121: if (!cache_stats_recorder_.is_bound()) if (!cache_stats_recorder_) {
3 years, 10 months ago (2017-02-02 19:43:39 UTC) #9
nigeltao1
R=sky,tsepez for OWNERS. https://codereview.chromium.org/2643183002/diff/20001/chrome/renderer/chrome_render_thread_observer.cc File chrome/renderer/chrome_render_thread_observer.cc (right): https://codereview.chromium.org/2643183002/diff/20001/chrome/renderer/chrome_render_thread_observer.cc#newcode121 chrome/renderer/chrome_render_thread_observer.cc:121: if (!cache_stats_recorder_.is_bound()) On 2017/02/02 19:43:39, Sam ...
3 years, 10 months ago (2017-02-03 01:47:38 UTC) #11
sky
https://codereview.chromium.org/2643183002/diff/40001/chrome/browser/cache_stats_recorder.cc File chrome/browser/cache_stats_recorder.cc (right): https://codereview.chromium.org/2643183002/diff/40001/chrome/browser/cache_stats_recorder.cc#newcode27 chrome/browser/cache_stats_recorder.cc:27: web_cache::WebCacheManager::GetInstance()->ObserveStats(render_process_id_, Is there any concern that by the time ...
3 years, 10 months ago (2017-02-03 16:31:44 UTC) #12
Tom Sepez
mojom LGTM
3 years, 10 months ago (2017-02-03 20:05:53 UTC) #13
sky
Also, do we have test coverage of this?
3 years, 10 months ago (2017-02-03 23:46:13 UTC) #14
nigeltao1
On 2017/02/03 23:46:13, sky wrote: > Also, do we have test coverage of this? IIUC, ...
3 years, 10 months ago (2017-02-07 21:32:57 UTC) #15
sky
I'm not sure either. I suggest looking at the blame log for who added the ...
3 years, 10 months ago (2017-02-07 23:12:41 UTC) #16
nigeltao1
On 2017/02/03 16:31:44, sky wrote: > https://codereview.chromium.org/2643183002/diff/40001/chrome/browser/cache_stats_recorder.cc > File chrome/browser/cache_stats_recorder.cc (right): > > https://codereview.chromium.org/2643183002/diff/40001/chrome/browser/cache_stats_recorder.cc#newcode27 > ...
3 years, 10 months ago (2017-02-16 02:50:50 UTC) #17
nigeltao1
On 2017/02/07 23:12:41, sky wrote: > I'm not sure either. I suggest looking at the ...
3 years, 10 months ago (2017-02-16 02:53:48 UTC) #18
Sam McNally
On 2017/02/16 02:50:50, nigeltao1 wrote: > On 2017/02/03 16:31:44, sky wrote: > > > https://codereview.chromium.org/2643183002/diff/40001/chrome/browser/cache_stats_recorder.cc ...
3 years, 10 months ago (2017-02-19 22:49:13 UTC) #19
nigeltao1
On 2017/02/19 22:49:13, Sam McNally wrote: > Making this interface channel-associated would avoid this risk. ...
3 years, 9 months ago (2017-03-13 04:09:05 UTC) #20
nigeltao1
3 years, 9 months ago (2017-03-13 04:50:42 UTC) #22
nigeltao1
On 2017/03/13 04:09:05, nigeltao1 wrote: > In chrome/browser/chrome_content_browser_client.cc, I've called the > AddAssociatedInterfaceForIOThread method on ...
3 years, 9 months ago (2017-03-13 04:54:32 UTC) #23
Ken Rockot(use gerrit already)
On 2017/03/13 at 04:54:32, nigeltao wrote: > On 2017/03/13 04:09:05, nigeltao1 wrote: > > In ...
3 years, 9 months ago (2017-03-13 17:19:53 UTC) #24
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2643183002/diff/60001/chrome/browser/cache_stats_recorder.cc File chrome/browser/cache_stats_recorder.cc (right): https://codereview.chromium.org/2643183002/diff/60001/chrome/browser/cache_stats_recorder.cc#newcode28 chrome/browser/cache_stats_recorder.cc:28: web_cache::WebCacheManager::GetInstance()->ObserveStats(render_process_id_, IIUC this is clearly already happening on the ...
3 years, 9 months ago (2017-03-13 17:19:58 UTC) #25
nigeltao1
On 2017/03/13 17:19:53, Ken Rockot wrote: > As a message that was handled by a ...
3 years, 9 months ago (2017-03-17 05:23:25 UTC) #26
Ken Rockot(use gerrit already)
Yikes, I misread it. So then this isn't the right thing to do. Channel-associated interface ...
3 years, 9 months ago (2017-03-17 05:55:17 UTC) #27
nigeltao1
On 2017/03/17 05:55:17, Ken Rockot wrote: > If I were you, I'd add an AssociatedInterfaceRegistryImpl ...
3 years, 9 months ago (2017-03-18 04:50:21 UTC) #28
nigeltao1
Huh, some of the tests are failing with: [18867:18867:0318/005553.514584:FATAL:associated_interface_registry_impl.cc(34)] Check failed: result.second. #0 0x000003559367 base::debug::StackTrace::StackTrace() ...
3 years, 9 months ago (2017-03-19 00:43:06 UTC) #37
Ken Rockot(use gerrit already)
On 2017/03/19 at 00:43:06, nigeltao wrote: > Huh, some of the tests are failing with: ...
3 years, 9 months ago (2017-03-20 16:00:57 UTC) #38
nigeltao1
On 2017/03/20 16:00:57, Ken Rockot wrote: > If insertion fails it's because the key is ...
3 years, 9 months ago (2017-03-23 05:52:18 UTC) #39
Ken Rockot(use gerrit already)
On 2017/03/23 05:52:18, nigeltao1 wrote: > On 2017/03/20 16:00:57, Ken Rockot wrote: > > If ...
3 years, 9 months ago (2017-03-24 19:38:52 UTC) #40
nigeltao1
On 2017/03/24 19:38:52, Ken Rockot wrote: > On 2017/03/23 05:52:18, nigeltao1 wrote: > > Two ...
3 years, 8 months ago (2017-03-31 04:39:26 UTC) #45
nigeltao1
On 2017/03/31 04:39:26, nigeltao1 wrote: > I've coded this approach. PTAL. rockot: ping.
3 years, 8 months ago (2017-04-05 22:33:45 UTC) #50
nigeltao1
On 2017/04/05 22:33:45, nigeltao1 wrote: > On 2017/03/31 04:39:26, nigeltao1 wrote: > > I've coded ...
3 years, 8 months ago (2017-04-06 01:37:32 UTC) #51
Ken Rockot(use gerrit already)
On 2017/04/06 at 01:37:32, nigeltao wrote: > On 2017/04/05 22:33:45, nigeltao1 wrote: > > On ...
3 years, 8 months ago (2017-04-10 21:23:48 UTC) #52
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2643183002/diff/140001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/2643183002/diff/140001/content/browser/renderer_host/render_process_host_impl.cc#newcode2092 content/browser/renderer_host/render_process_host_impl.cc:2092: } else if (associated_registry_->CanBindRequest(interface_name)) { Optional nit: You could ...
3 years, 8 months ago (2017-04-11 22:20:36 UTC) #53
nigeltao1
https://codereview.chromium.org/2643183002/diff/140001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/2643183002/diff/140001/content/browser/renderer_host/render_process_host_impl.cc#newcode2092 content/browser/renderer_host/render_process_host_impl.cc:2092: } else if (associated_registry_->CanBindRequest(interface_name)) { On 2017/04/11 22:20:36, Ken ...
3 years, 8 months ago (2017-04-20 05:12:37 UTC) #54
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/2643183002/diff/180001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/2643183002/diff/180001/content/browser/renderer_host/render_process_host_impl.cc#newcode1331 content/browser/renderer_host/render_process_host_impl.cc:1331: static_cast<AssociatedInterfaceRegistry*>(associated_registry_.get()) nit: This is unfortunate, but I really ...
3 years, 8 months ago (2017-04-20 15:49:42 UTC) #57
nigeltao1
https://codereview.chromium.org/2643183002/diff/180001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/2643183002/diff/180001/content/browser/renderer_host/render_process_host_impl.cc#newcode1331 content/browser/renderer_host/render_process_host_impl.cc:1331: static_cast<AssociatedInterfaceRegistry*>(associated_registry_.get()) On 2017/04/20 15:49:42, Ken Rockot wrote: > nit: ...
3 years, 8 months ago (2017-04-21 00:07:54 UTC) #58
nigeltao1
sky, PTAL for OWNERS.
3 years, 8 months ago (2017-04-21 00:08:12 UTC) #59
sky
LGTM - I didn't look at content as I'm not an owner there. https://codereview.chromium.org/2643183002/diff/200001/chrome/renderer/chrome_render_thread_observer.cc File ...
3 years, 8 months ago (2017-04-21 04:30:39 UTC) #64
nigeltao1
lcwu, can you review for chromecast/OWNERS? pfeldman, can you review for content/OWNERS?
3 years, 8 months ago (2017-04-21 23:53:38 UTC) #66
nigeltao1
https://codereview.chromium.org/2643183002/diff/200001/chrome/renderer/chrome_render_thread_observer.cc File chrome/renderer/chrome_render_thread_observer.cc (right): https://codereview.chromium.org/2643183002/diff/200001/chrome/renderer/chrome_render_thread_observer.cc#newcode124 chrome/renderer/chrome_render_thread_observer.cc:124: if (!cache_stats_recorder_) On 2017/04/21 04:30:39, sky wrote: > {} ...
3 years, 8 months ago (2017-04-21 23:54:09 UTC) #67
nigeltao1
halliwell, can you review for chromecast/OWNERS? lcwu isn't responding. nick, can you review for content/OWNERS? ...
3 years, 8 months ago (2017-04-27 00:52:18 UTC) #69
halliwell
On 2017/04/27 00:52:18, nigeltao1 wrote: > halliwell, can you review for chromecast/OWNERS? lcwu isn't responding. ...
3 years, 8 months ago (2017-04-27 01:52:04 UTC) #70
ncarter (slow)
lgtm https://codereview.chromium.org/2643183002/diff/220001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/2643183002/diff/220001/content/browser/renderer_host/render_process_host_impl.cc#newcode2749 content/browser/renderer_host/render_process_host_impl.cc:2749: route_provider_binding_.Close(); Does associated_interfaces_ need to be reset here? ...
3 years, 7 months ago (2017-04-27 20:43:54 UTC) #71
nigeltao1
https://codereview.chromium.org/2643183002/diff/220001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/2643183002/diff/220001/content/browser/renderer_host/render_process_host_impl.cc#newcode2749 content/browser/renderer_host/render_process_host_impl.cc:2749: route_provider_binding_.Close(); On 2017/04/27 20:43:53, ncarter wrote: > Does associated_interfaces_ ...
3 years, 7 months ago (2017-04-28 00:33:25 UTC) #72
Ken Rockot(use gerrit already)
still lgtm https://codereview.chromium.org/2643183002/diff/240001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/2643183002/diff/240001/content/browser/renderer_host/render_process_host_impl.cc#newcode2152 content/browser/renderer_host/render_process_host_impl.cc:2152: if ((associated_interfaces_) && nit: please remove the ...
3 years, 7 months ago (2017-04-28 19:20:10 UTC) #73
nigeltao1
https://codereview.chromium.org/2643183002/diff/240001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/2643183002/diff/240001/content/browser/renderer_host/render_process_host_impl.cc#newcode2152 content/browser/renderer_host/render_process_host_impl.cc:2152: if ((associated_interfaces_) && On 2017/04/28 19:20:10, Ken Rockot wrote: ...
3 years, 7 months ago (2017-04-29 07:07:57 UTC) #74
nigeltao1
https://codereview.chromium.org/2643183002/diff/260001/chrome/browser/renderer_host/chrome_render_message_filter.cc File chrome/browser/renderer_host/chrome_render_message_filter.cc (left): https://codereview.chromium.org/2643183002/diff/260001/chrome/browser/renderer_host/chrome_render_message_filter.cc#oldcode89 chrome/browser/renderer_host/chrome_render_message_filter.cc:89: #if BUILDFLAG(ENABLE_PLUGINS) FTR, I also expanded this #if a ...
3 years, 7 months ago (2017-04-29 07:13:43 UTC) #75
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/2643183002/280001
3 years, 7 months ago (2017-04-29 07:14:14 UTC) #78
commit-bot: I haz the power
3 years, 7 months ago (2017-04-29 09:30:54 UTC) #81
Message was sent while issue was closed.
Committed patchset #15 (id:280001) as
https://chromium.googlesource.com/chromium/src/+/beff0a104dbf869114f66db3efc2...

Powered by Google App Engine
This is Rietveld 408576698