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

Issue 2478823002: predictors: ResourcePrefetchPredictorTables cleanup. (Closed)

Created:
4 years, 1 month ago by alexilin
Modified:
4 years, 1 month ago
CC:
chromium-reviews, shishir+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

predictors: ResourcePrefetchPredictorTables cleanup. Make resource score display in webui correctly. ResourcePrefetchPredictorTables changes: - Organize includes and usings. - Get rid of mocking friend at the cost of moving ctor/dtor from private to protected section. - Make ComputeResourceScore public to use it in webui. BUG=631966 Committed: https://crrev.com/e4bf55e82fa599637f01e3f6de08bc4d32db6450 Cr-Commit-Position: refs/heads/master@{#430245}

Patch Set 1 #

Patch Set 2 : lint #

Total comments: 6

Patch Set 3 : Return definition order. #

Total comments: 1

Patch Set 4 : Undo non-static. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -57 lines) Patch
M chrome/browser/predictors/resource_prefetch_predictor_tables.h View 1 2 3 6 chunks +15 lines, -20 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_tables.cc View 1 2 3 14 chunks +26 lines, -37 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_tables_unittest.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/predictors/predictors_handler.cc View 1 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (14 generated)
alexilin
pasko@, lizeb@: PTAL * pkasting@: PTAL webui/ Tiny change to display resource score in webui ...
4 years, 1 month ago (2016-11-04 14:33:21 UTC) #4
Benoit L
This CL does 3 things: 1. Surface the score in WebUI 2. Remove some un-necessary ...
4 years, 1 month ago (2016-11-04 15:03:10 UTC) #5
pasko
On 2016/11/04 15:03:10, Benoit L wrote: > This CL does 3 things: > 1. Surface ...
4 years, 1 month ago (2016-11-04 15:16:57 UTC) #6
alexilin
Undo moving code. As I can see there is no rule to preserve some definition ...
4 years, 1 month ago (2016-11-04 15:29:47 UTC) #10
alexilin
https://codereview.chromium.org/2478823002/diff/40001/chrome/browser/predictors/resource_prefetch_predictor_tables.h File chrome/browser/predictors/resource_prefetch_predictor_tables.h (right): https://codereview.chromium.org/2478823002/diff/40001/chrome/browser/predictors/resource_prefetch_predictor_tables.h#newcode84 chrome/browser/predictors/resource_prefetch_predictor_tables.h:84: static void TrimResources(PrefetchData* data, size_t max_consecutive_misses); BTW, I think ...
4 years, 1 month ago (2016-11-04 15:32:37 UTC) #11
Benoit L
Thanks for reverting some of the changes. I still think that less code churn is ...
4 years, 1 month ago (2016-11-04 15:39:42 UTC) #12
alexilin
https://codereview.chromium.org/2478823002/diff/20001/chrome/browser/predictors/resource_prefetch_predictor_tables.h File chrome/browser/predictors/resource_prefetch_predictor_tables.h (left): https://codereview.chromium.org/2478823002/diff/20001/chrome/browser/predictors/resource_prefetch_predictor_tables.h#oldcode144 chrome/browser/predictors/resource_prefetch_predictor_tables.h:144: static bool DropTablesIfOutdated(sql::Connection* db); On 2016/11/04 15:39:42, Benoit L ...
4 years, 1 month ago (2016-11-04 16:25:59 UTC) #14
Benoit L
lgtm, thanks.
4 years, 1 month ago (2016-11-04 16:55:54 UTC) #15
pasko
lgtm
4 years, 1 month ago (2016-11-04 19:33:45 UTC) #16
Peter Kasting
LGTM
4 years, 1 month ago (2016-11-04 20:09:15 UTC) #17
Peter Kasting
On 2016/11/04 15:29:47, alexilin wrote: > Undo moving code. > As I can see there ...
4 years, 1 month ago (2016-11-04 20:22:26 UTC) #18
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/2478823002/60001
4 years, 1 month ago (2016-11-07 10:12:56 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-07 10:17:40 UTC) #26
commit-bot: I haz the power
4 years, 1 month ago (2016-11-07 10:21:06 UTC) #28
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e4bf55e82fa599637f01e3f6de08bc4d32db6450
Cr-Commit-Position: refs/heads/master@{#430245}

Powered by Google App Engine
This is Rietveld 408576698