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

Issue 2521823008: Migrate chrome_net_benchmarking_message_filter to mojo (Closed)

Created:
4 years ago by dvallet
Modified:
4 years ago
Reviewers:
Sam McNally, tibell, dcheng, sky
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Migrate chrome_net_benchmarking_message_filter to mojo BUG=577685 Committed: https://crrev.com/233f57ab4869984231b841dc58dff2dde3545072 Cr-Commit-Position: refs/heads/master@{#439996}

Patch Set 1 #

Patch Set 2 : Added mojom file #

Patch Set 3 : Figure out where to put the add interface #

Patch Set 4 : Added first client interface call #

Patch Set 5 : Added all used interfaces, removed old IPC definitions #

Patch Set 6 : update and retry bot #

Patch Set 7 : Change class and mojo names to adjust to new norm #

Patch Set 8 : Fixed upstream issues #

Patch Set 9 : Fixed unused error in android build #

Patch Set 10 : Added mojo interface to json manifest #

Patch Set 11 : Change default thread fro ChromeNetBenchmarkingImpl #

Patch Set 12 : change ClearPredictorCache to run on UI thread via PostTask #

Total comments: 12

Patch Set 13 : Renamed mojo class to net_benchmarking #

Total comments: 8

Patch Set 14 : Modified methods to sync behavior #

Patch Set 15 : Change ClearPredictorCache to PostTaskAndReply #

Total comments: 6

Patch Set 16 : Fix sync call to ClearCache #

Total comments: 2

Patch Set 17 : change all calls to use default sync method #

Total comments: 13

Patch Set 18 : Moved CloseCurrentConnections to NetBenchmarkingTest interface #

Patch Set 19 : reverted split interface #

Total comments: 7

Patch Set 20 : Do not add NetBenchmaring interface if benchmarking is disabled #

Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -271 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +2 lines, -2 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 14 15 16 17 18 19 6 chunks +11 lines, -6 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 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_net_benchmarking_message_filter.h View 1 2 3 4 5 6 1 chunk +0 lines, -55 lines 0 comments Download
M chrome/browser/chrome_net_benchmarking_message_filter.cc View 1 2 3 4 5 6 1 chunk +0 lines, -159 lines 0 comments Download
A chrome/browser/net_benchmarking.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/browser/net_benchmarking.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +105 lines, -0 lines 0 comments Download
M chrome/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
D chrome/common/benchmarking_messages.h View 1 2 3 4 1 chunk +0 lines, -40 lines 0 comments Download
M chrome/common/common_message_generator.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
A chrome/common/net_benchmarking.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 18 1 chunk +28 lines, -0 lines 0 comments Download
M chrome/renderer/net_benchmarking_extension.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 18 2 chunks +19 lines, -8 lines 0 comments Download

Messages

Total messages: 87 (58 generated)
dvallet
update and retry bot
4 years ago (2016-11-28 22:11:09 UTC) #5
dvallet
Change class and mojo names to adjust to new norm
4 years ago (2016-11-28 23:15:10 UTC) #10
dvallet
4 years ago (2016-12-04 22:14:22 UTC) #32
Sam McNally
https://codereview.chromium.org/2521823008/diff/220001/chrome/browser/chrome_net_benchmarking_impl.cc File chrome/browser/chrome_net_benchmarking_impl.cc (right): https://codereview.chromium.org/2521823008/diff/220001/chrome/browser/chrome_net_benchmarking_impl.cc#newcode64 chrome/browser/chrome_net_benchmarking_impl.cc:64: if (!CheckBenchmarkingEnabled()) { Check this in Create() instead and ...
4 years ago (2016-12-05 06:57:10 UTC) #34
dvallet
PTAL https://codereview.chromium.org/2521823008/diff/220001/chrome/browser/chrome_net_benchmarking_impl.cc File chrome/browser/chrome_net_benchmarking_impl.cc (right): https://codereview.chromium.org/2521823008/diff/220001/chrome/browser/chrome_net_benchmarking_impl.cc#newcode64 chrome/browser/chrome_net_benchmarking_impl.cc:64: if (!CheckBenchmarkingEnabled()) { On 2016/12/05 at 06:57:09, Sam ...
4 years ago (2016-12-07 02:21:03 UTC) #36
Sam McNally
https://codereview.chromium.org/2521823008/diff/220001/chrome/common/chrome_net_benchmarking.mojom File chrome/common/chrome_net_benchmarking.mojom (right): https://codereview.chromium.org/2521823008/diff/220001/chrome/common/chrome_net_benchmarking.mojom#newcode10 chrome/common/chrome_net_benchmarking.mojom:10: CloseCurrentConnections(); On 2016/12/07 02:21:02, dvallet wrote: > On 2016/12/05 ...
4 years ago (2016-12-08 22:57:46 UTC) #40
dvallet
PTAL https://codereview.chromium.org/2521823008/diff/220001/chrome/common/chrome_net_benchmarking.mojom File chrome/common/chrome_net_benchmarking.mojom (right): https://codereview.chromium.org/2521823008/diff/220001/chrome/common/chrome_net_benchmarking.mojom#newcode10 chrome/common/chrome_net_benchmarking.mojom:10: CloseCurrentConnections(); On 2016/12/08 at 22:57:46, Sam McNally wrote: ...
4 years ago (2016-12-12 22:04:37 UTC) #49
Sam McNally
https://codereview.chromium.org/2521823008/diff/280001/chrome/browser/net_benchmarking_impl.cc File chrome/browser/net_benchmarking_impl.cc (right): https://codereview.chromium.org/2521823008/diff/280001/chrome/browser/net_benchmarking_impl.cc#newcode117 chrome/browser/net_benchmarking_impl.cc:117: base::Bind(&ClearPredictorCacheOnUIThread, profile_), Reformat. https://codereview.chromium.org/2521823008/diff/280001/chrome/renderer/net_benchmarking_extension.cc File chrome/renderer/net_benchmarking_extension.cc (left): https://codereview.chromium.org/2521823008/diff/280001/chrome/renderer/net_benchmarking_extension.cc#oldcode68 chrome/renderer/net_benchmarking_extension.cc:68: ...
4 years ago (2016-12-12 22:23:52 UTC) #50
dvallet
https://codereview.chromium.org/2521823008/diff/280001/chrome/browser/net_benchmarking_impl.cc File chrome/browser/net_benchmarking_impl.cc (right): https://codereview.chromium.org/2521823008/diff/280001/chrome/browser/net_benchmarking_impl.cc#newcode117 chrome/browser/net_benchmarking_impl.cc:117: base::Bind(&ClearPredictorCacheOnUIThread, profile_), On 2016/12/12 at 22:23:52, Sam McNally wrote: ...
4 years ago (2016-12-12 22:47:26 UTC) #51
Sam McNally
https://codereview.chromium.org/2521823008/diff/300001/chrome/renderer/net_benchmarking_extension.cc File chrome/renderer/net_benchmarking_extension.cc (right): https://codereview.chromium.org/2521823008/diff/300001/chrome/renderer/net_benchmarking_extension.cc#newcode88 chrome/renderer/net_benchmarking_extension.cc:88: GetNetBenchmarking().ClearHostResolverCache(callback); Change the rest of these calls to use ...
4 years ago (2016-12-12 22:57:04 UTC) #54
dvallet
https://codereview.chromium.org/2521823008/diff/300001/chrome/renderer/net_benchmarking_extension.cc File chrome/renderer/net_benchmarking_extension.cc (right): https://codereview.chromium.org/2521823008/diff/300001/chrome/renderer/net_benchmarking_extension.cc#newcode88 chrome/renderer/net_benchmarking_extension.cc:88: GetNetBenchmarking().ClearHostResolverCache(callback); On 2016/12/12 22:57:04, Sam McNally wrote: > Change ...
4 years ago (2016-12-13 00:22:18 UTC) #55
Sam McNally
lgtm
4 years ago (2016-12-13 00:28:53 UTC) #56
tibell
lgtm
4 years ago (2016-12-13 00:33:28 UTC) #57
dvallet
I'm changing mojo IPC as part of my chromie noogler project. @dcheng: Could you please ...
4 years ago (2016-12-13 00:40:54 UTC) #59
sky
https://codereview.chromium.org/2521823008/diff/320001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2521823008/diff/320001/chrome/browser/chrome_content_browser_client.cc#newcode2936 chrome/browser/chrome_content_browser_client.cc:2936: void ChromeContentBrowserClient::ExposeInterfacesToRenderer( What thread does this code run on? ...
4 years ago (2016-12-13 02:02:53 UTC) #60
dvallet
https://codereview.chromium.org/2521823008/diff/320001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2521823008/diff/320001/chrome/browser/chrome_content_browser_client.cc#newcode2936 chrome/browser/chrome_content_browser_client.cc:2936: void ChromeContentBrowserClient::ExposeInterfacesToRenderer( On 2016/12/13 02:02:52, sky wrote: > What ...
4 years ago (2016-12-13 05:20:04 UTC) #63
sky
https://codereview.chromium.org/2521823008/diff/320001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2521823008/diff/320001/chrome/browser/chrome_content_browser_client.cc#newcode2936 chrome/browser/chrome_content_browser_client.cc:2936: void ChromeContentBrowserClient::ExposeInterfacesToRenderer( On 2016/12/13 05:20:04, dvallet wrote: > On ...
4 years ago (2016-12-13 14:09:59 UTC) #66
Sam McNally
https://codereview.chromium.org/2521823008/diff/320001/chrome/common/net_benchmarking.mojom File chrome/common/net_benchmarking.mojom (right): https://codereview.chromium.org/2521823008/diff/320001/chrome/common/net_benchmarking.mojom#newcode8 chrome/common/net_benchmarking.mojom:8: // Message sent from the renderer to the browser ...
4 years ago (2016-12-13 22:31:46 UTC) #67
dvallet
https://codereview.chromium.org/2521823008/diff/320001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2521823008/diff/320001/chrome/browser/chrome_content_browser_client.cc#newcode2936 chrome/browser/chrome_content_browser_client.cc:2936: void ChromeContentBrowserClient::ExposeInterfacesToRenderer( On 2016/12/13 14:09:59, sky wrote: > On ...
4 years ago (2016-12-13 23:20:06 UTC) #68
sky
Ok, LGTM
4 years ago (2016-12-13 23:44:19 UTC) #69
dvallet
On 2016/12/13 22:31:46, Sam McNally wrote: > https://codereview.chromium.org/2521823008/diff/320001/chrome/common/net_benchmarking.mojom > File chrome/common/net_benchmarking.mojom (right): > > https://codereview.chromium.org/2521823008/diff/320001/chrome/common/net_benchmarking.mojom#newcode8 ...
4 years ago (2016-12-14 02:22:17 UTC) #70
dvallet
4 years ago (2016-12-14 02:22:48 UTC) #71
dcheng
https://codereview.chromium.org/2521823008/diff/360001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2521823008/diff/360001/chrome/browser/chrome_content_browser_client.cc#newcode2947 chrome/browser/chrome_content_browser_client.cc:2947: base::Bind(&NetBenchmarking::Create, profile, context)); Let's avoid installing the interface at ...
4 years ago (2016-12-20 09:14:46 UTC) #72
dvallet
https://codereview.chromium.org/2521823008/diff/360001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2521823008/diff/360001/chrome/browser/chrome_content_browser_client.cc#newcode2947 chrome/browser/chrome_content_browser_client.cc:2947: base::Bind(&NetBenchmarking::Create, profile, context)); On 2016/12/20 09:14:45, dcheng wrote: > ...
4 years ago (2016-12-20 23:19:21 UTC) #73
dvallet
4 years ago (2016-12-20 23:19:28 UTC) #74
dcheng
mojo lgtm
4 years ago (2016-12-21 01:57:15 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/2521823008/380001
4 years ago (2016-12-21 03:12:28 UTC) #82
commit-bot: I haz the power
Committed patchset #20 (id:380001)
4 years ago (2016-12-21 03:17:41 UTC) #85
commit-bot: I haz the power
4 years ago (2016-12-21 03:19:25 UTC) #87
Message was sent while issue was closed.
Patchset 20 (id:??) landed as
https://crrev.com/233f57ab4869984231b841dc58dff2dde3545072
Cr-Commit-Position: refs/heads/master@{#439996}

Powered by Google App Engine
This is Rietveld 408576698