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

Issue 1721813002: Adding DRP specfic UMA for FirstContentfulPaint (Closed)

Created:
4 years, 10 months ago by RyanSturm
Modified:
4 years, 7 months ago
CC:
asvitkine+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, csharrison+watch_chromium.org, darin-cc_chromium.org, jam, loading-reviews_chromium.org, loading-reviews+metrics_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding DataReductionProxy (DRP) specfic UMA for FirstContentfulPaint. This consumes the PageLoad.Timing2 code path to get data specific to DRP with regards to having DRP on and being in the lofi experiment. Right now, it only considers NavigationToFirstContentfulPaint. This introduces: DataReductionProxyData, which is stored on URLRequest; NavigationData, a cloneable interface used in content/ to communicate information to NavigationHandle; ChromeNavigationData, an inheritor of NavigationData that owns a DataReductionProxyData and is stored in NavigationHandleImpl (UI thread) and URLRequest (IO thread, in UserData). BUG=578321 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/fe32816d121c9c779c56d52e63b26d2746ed9987 Cr-Commit-Position: refs/heads/master@{#393087}

Patch Set 1 #

Total comments: 36

Patch Set 2 : Rebase + rename variables + fix comments #

Patch Set 3 : Created a DRP PageLoadMetricsObserver #

Total comments: 24

Patch Set 4 : Fixing nits #

Total comments: 30

Patch Set 5 : Fixing nits #

Total comments: 20

Patch Set 6 : Fixing histogram name and braces #

Patch Set 7 : Draft of opaque plumbing #

Patch Set 8 : Changing lifetime of NavigationSupportsUserData for Draft #

Total comments: 2

Patch Set 9 : Making NavigationUserData write only to reduce outstanding references #

Patch Set 10 : New Draft of Design #

Patch Set 11 : Creating DataReductionProxyData only on UI thread #

Patch Set 12 : Draft of UMA FCP using NavigationResourceThrottle/NavigationResourceHandler #

Patch Set 13 : Draft for plumbing DataReductionProxy Data #

Patch Set 14 : Draft passing NavigationUserData #

Patch Set 15 : NavigationData final draft before adding tests #

Total comments: 38

Patch Set 16 : Rebase, Tests, Ready for Review #

Total comments: 2

Patch Set 17 : Rebase #

Patch Set 18 : Missing Header Include #

Total comments: 134

Patch Set 19 : Addressing comments from bengr@ #

Patch Set 20 : fixing drp -> data_reduction_proxy #

Total comments: 18

Patch Set 21 : Addressing comments from nasko@ #

Total comments: 20

Patch Set 22 : fixes + Using RDHDelegate instead of RDHImpl in NavigationResourceHandler/NavigationResourceThrottle #

Total comments: 6

Patch Set 23 : Maintaining ownership of ChromeNavigationData in URLRequest's UserData #

Patch Set 24 : Missing gn include for unittest #

Patch Set 25 : Small change in browser test #

Total comments: 2

Patch Set 26 : Reverting unchanged files #

Total comments: 6

Patch Set 27 : rebase #

Patch Set 28 : making NavigationData const after clone #

Total comments: 23

Patch Set 29 : Minor fixes + non-consting NavigationData #

Total comments: 1

Patch Set 30 : Whitespace nit #

Patch Set 31 : Histograms text change #

Patch Set 32 : Rebase #

Total comments: 6

Patch Set 33 : Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1116 lines, -60 lines) Patch
A chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +59 lines, -0 lines 0 comments Download
A chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 28 1 chunk +80 lines, -0 lines 0 comments Download
A chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer_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 27 1 chunk +162 lines, -0 lines 0 comments Download
M chrome/browser/page_load_metrics/page_load_metrics_initialize.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/browser/renderer_host/chrome_navigation_data.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 1 chunk +57 lines, -0 lines 0 comments Download
A chrome/browser/renderer_host/chrome_navigation_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +35 lines, -0 lines 0 comments Download
A chrome/browser/renderer_host/chrome_navigation_data_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 27 28 1 chunk +42 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.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 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.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 2 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate_browsertest.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 5 chunks +71 lines, -2 lines 0 comments Download
A chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate_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 27 28 1 chunk +69 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi 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 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi 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 2 chunks +3 lines, -0 lines 0 comments Download
M components/components_tests.gyp 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 components/data_reduction_proxy.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/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 2 chunks +3 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/core/browser/data_reduction_proxy_data.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 1 chunk +62 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/core/browser/data_reduction_proxy_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +44 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/core/browser/data_reduction_proxy_data_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +91 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.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 2 chunks +12 lines, -3 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_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 27 28 29 30 31 2 chunks +58 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 28 4 chunks +12 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_handle_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 28 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_request.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 28 2 chunks +6 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigation_request.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 3 chunks +6 lines, -1 line 0 comments Download
M content/browser/frame_host/navigator_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 15 chunks +26 lines, -25 lines 0 comments Download
M content/browser/loader/navigation_resource_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +6 lines, -2 lines 0 comments Download
M content/browser/loader/navigation_resource_handler.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 28 2 chunks +23 lines, -3 lines 0 comments Download
M content/browser/loader/navigation_resource_throttle.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +6 lines, -1 line 0 comments Download
M content/browser/loader/navigation_resource_throttle.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 28 3 chunks +28 lines, -4 lines 0 comments Download
M content/browser/loader/navigation_url_loader_delegate.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 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/loader/navigation_url_loader_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 28 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/loader/navigation_url_loader_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 28 2 chunks +5 lines, -2 lines 0 comments Download
M content/browser/loader/navigation_url_loader_impl_core.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 28 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/loader/navigation_url_loader_impl_core.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 28 2 chunks +5 lines, -2 lines 0 comments Download
M content/browser/loader/resource_dispatcher_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 2 chunks +2 lines, -2 lines 0 comments Download
M content/content_browser.gypi 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 1 chunk +1 line, -0 lines 0 comments Download
A content/public/browser/navigation_data.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 1 chunk +25 lines, -0 lines 0 comments Download
M content/public/browser/navigation_handle.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 28 2 chunks +6 lines, -0 lines 0 comments Download
M content/public/browser/resource_dispatcher_host_delegate.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 2 chunks +5 lines, -0 lines 0 comments Download
M content/public/browser/resource_dispatcher_host_delegate.cc 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 +6 lines, -0 lines 0 comments Download
M content/public/test/web_contents_tester.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +7 lines, -0 lines 0 comments Download
M content/test/test_navigation_url_loader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 28 2 chunks +3 lines, -1 line 0 comments Download
M content/test/test_navigation_url_loader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 28 2 chunks +5 lines, -2 lines 0 comments Download
M content/test/test_navigation_url_loader_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 28 1 chunk +4 lines, -2 lines 0 comments Download
M content/test/test_navigation_url_loader_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 28 2 chunks +3 lines, -1 line 0 comments Download
M content/test/test_render_frame_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M content/test/test_web_contents.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +6 lines, -0 lines 0 comments Download
M content/test/test_web_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +9 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml 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 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 73 (18 generated)
RyanSturm
4 years, 10 months ago (2016-02-24 21:55:48 UTC) #3
bengr
Please provide a more detailed synopsis of your change in the CL description.
4 years, 9 months ago (2016-02-26 22:30:00 UTC) #4
bengr
https://codereview.chromium.org/1721813002/diff/1/chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc File chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc (right): https://codereview.chromium.org/1721813002/diff/1/chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc#newcode242 chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc:242: bool in_lofi_enabled_group = I'd get rid of these temporaries. ...
4 years, 9 months ago (2016-02-26 22:53:58 UTC) #5
RyanSturm
https://codereview.chromium.org/1721813002/diff/1/chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc File chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc (right): https://codereview.chromium.org/1721813002/diff/1/chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc#newcode242 chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc:242: bool in_lofi_enabled_group = On 2016/02/26 22:53:57, bengr wrote: > ...
4 years, 9 months ago (2016-03-01 19:36:04 UTC) #6
Charlie Harrison
Drive by: Since all the extra data you're adding to the observer API is available ...
4 years, 9 months ago (2016-03-01 19:50:43 UTC) #8
RyanSturm
On 2016/03/01 19:50:43, csharrison wrote: > Drive by: Since all the extra data you're adding ...
4 years, 9 months ago (2016-03-01 21:50:36 UTC) #9
tbansal1
https://codereview.chromium.org/1721813002/diff/40001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc File chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc (right): https://codereview.chromium.org/1721813002/diff/40001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc#newcode46 chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc:46: if (!timing.first_contentful_paint.is_zero()) { For readability: if (timing.first_contentful_paint.is_zero() || !used_data_reduction_proxy_) ...
4 years, 9 months ago (2016-03-07 18:05:05 UTC) #11
RyanSturm
https://codereview.chromium.org/1721813002/diff/40001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc File chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc (right): https://codereview.chromium.org/1721813002/diff/40001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc#newcode46 chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc:46: if (!timing.first_contentful_paint.is_zero()) { On 2016/03/07 18:05:04, tbansal1 wrote: > ...
4 years, 9 months ago (2016-03-08 19:47:43 UTC) #12
tbansal1
https://codereview.chromium.org/1721813002/diff/60001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc File chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc (right): https://codereview.chromium.org/1721813002/diff/60001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc#newcode46 chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc:46: if (timing.first_contentful_paint.is_zero() || used_data_reduction_proxy_) did you mean !used_data_reduction_proxy? https://codereview.chromium.org/1721813002/diff/60001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.h ...
4 years, 9 months ago (2016-03-08 22:14:44 UTC) #13
RyanSturm
https://codereview.chromium.org/1721813002/diff/60001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc File chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc (right): https://codereview.chromium.org/1721813002/diff/60001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc#newcode46 chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc:46: if (timing.first_contentful_paint.is_zero() || used_data_reduction_proxy_) On 2016/03/08 22:14:43, tbansal1 wrote: ...
4 years, 9 months ago (2016-03-10 00:37:58 UTC) #14
tbansal1
https://codereview.chromium.org/1721813002/diff/80001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer_unittest.cc File chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer_unittest.cc (right): https://codereview.chromium.org/1721813002/diff/80001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer_unittest.cc#newcode50 chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer_unittest.cc:50: SetSimulateUsedDataReductionProxy(true); Since the two tests are similar (except for ...
4 years, 9 months ago (2016-03-10 22:49:48 UTC) #15
Charlie Harrison
another drive by. Thanks for changing to the observer technique. https://codereview.chromium.org/1721813002/diff/80001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc File chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc (right): https://codereview.chromium.org/1721813002/diff/80001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc#newcode16 ...
4 years, 9 months ago (2016-03-11 16:06:04 UTC) #16
RyanSturm
https://codereview.chromium.org/1721813002/diff/80001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc File chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc (right): https://codereview.chromium.org/1721813002/diff/80001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc#newcode16 chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc:16: namespace internal { On 2016/03/11 16:06:04, csharrison wrote: > ...
4 years, 9 months ago (2016-03-14 21:00:46 UTC) #17
RyanSturm
This is not ready for review. This is a first draft of a different implementation. ...
4 years, 9 months ago (2016-03-22 19:05:12 UTC) #18
RyanSturm
https://codereview.chromium.org/1721813002/diff/140001/content/browser/frame_host/navigation_user_data.h File content/browser/frame_host/navigation_user_data.h (right): https://codereview.chromium.org/1721813002/diff/140001/content/browser/frame_host/navigation_user_data.h#newcode27 content/browser/frame_host/navigation_user_data.h:27: NavigationSupportsUserData* get_navigation_supports_user_data(); Consider changing to SetUserData(void* key, Data data). ...
4 years, 9 months ago (2016-03-24 17:43:06 UTC) #20
bengr
Chatted offline with nasko@ and ncarter@ and we agreed on an approach where the embedder ...
4 years, 8 months ago (2016-04-21 23:04:29 UTC) #21
nasko
Looks good overall. Please expand DRP in the CL title and description on first use, ...
4 years, 7 months ago (2016-04-26 20:18:40 UTC) #23
RyanSturm
bengr, tbansal1: ptal https://codereview.chromium.org/1721813002/diff/140001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc (right): https://codereview.chromium.org/1721813002/diff/140001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc#newcode164 components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc:164: content::NavigationUserData* navigation_user_data = Check if this ...
4 years, 7 months ago (2016-04-27 23:27:47 UTC) #25
tbansal1
I will let bengr review the CL since at this point he is more familiar ...
4 years, 7 months ago (2016-04-27 23:44:48 UTC) #26
RyanSturm
https://codereview.chromium.org/1721813002/diff/340001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc (right): https://codereview.chromium.org/1721813002/diff/340001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc#newcode163 components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc:163: !data_reduction_proxy_config_->IsDataReductionProxy( Add a proxy_server().is_valid() and proxy_server().is_direct checks before this ...
4 years, 7 months ago (2016-04-28 21:22:03 UTC) #27
bengr
Looking good. It might make sense to split this into two CLs. The first would ...
4 years, 7 months ago (2016-04-29 21:14:23 UTC) #28
RyanSturm
Addressed all comments raised by bengr@ https://codereview.chromium.org/1721813002/diff/340001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc File chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc (right): https://codereview.chromium.org/1721813002/diff/340001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc#newcode19 chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc:19: namespace internal { ...
4 years, 7 months ago (2016-05-02 19:52:22 UTC) #29
RyanSturm
With regards to splitting the CL up: I see the benefit of splitting it up, ...
4 years, 7 months ago (2016-05-02 20:02:09 UTC) #30
nasko
Overall it is getting there. The code implementing the functionality is pretty close. I'm not ...
4 years, 7 months ago (2016-05-02 22:02:49 UTC) #31
RyanSturm
+csharrison: PTAL, specifically at: The metrics observer ( chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc) The RDH use in NavigationResourceThrottle/NaivgationResourceHandler. Would ...
4 years, 7 months ago (2016-05-02 23:02:57 UTC) #33
Charlie Harrison
page_load_metrics looks generally good. My gut is that using a pointer to the RDHI delegate ...
4 years, 7 months ago (2016-05-03 01:08:33 UTC) #35
Bryan McQuade
https://codereview.chromium.org/1721813002/diff/400001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc File chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc (right): https://codereview.chromium.org/1721813002/diff/400001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc#newcode77 chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc:77: if (data_reduction_proxy::params::IsIncludedInLoFiEnabledFieldTrial()) { are these standard finch field trials? ...
4 years, 7 months ago (2016-05-03 13:00:40 UTC) #37
mmenke
https://codereview.chromium.org/1721813002/diff/400001/content/browser/loader/navigation_resource_handler.cc File content/browser/loader/navigation_resource_handler.cc (right): https://codereview.chromium.org/1721813002/diff/400001/content/browser/loader/navigation_resource_handler.cc#newcode108 content/browser/loader/navigation_resource_handler.cc:108: resource_dispatcher_host_->delegate()->GetNavigationData(request()); Accessing the RDH and/or its delegate here seems ...
4 years, 7 months ago (2016-05-03 16:06:24 UTC) #38
bengr
https://codereview.chromium.org/1721813002/diff/400001/content/browser/loader/navigation_resource_handler.cc File content/browser/loader/navigation_resource_handler.cc (right): https://codereview.chromium.org/1721813002/diff/400001/content/browser/loader/navigation_resource_handler.cc#newcode108 content/browser/loader/navigation_resource_handler.cc:108: resource_dispatcher_host_->delegate()->GetNavigationData(request()); On 2016/05/03 16:06:24, mmenke wrote: > Accessing the ...
4 years, 7 months ago (2016-05-03 17:41:55 UTC) #39
RyanSturm
Fixing everything except mmenke@'s two issues. +ncarter@ The clone contract is more explicit and allows ...
4 years, 7 months ago (2016-05-03 18:14:13 UTC) #40
mmenke
https://codereview.chromium.org/1721813002/diff/400001/content/browser/loader/navigation_resource_handler.cc File content/browser/loader/navigation_resource_handler.cc (right): https://codereview.chromium.org/1721813002/diff/400001/content/browser/loader/navigation_resource_handler.cc#newcode108 content/browser/loader/navigation_resource_handler.cc:108: resource_dispatcher_host_->delegate()->GetNavigationData(request()); On 2016/05/03 18:14:13, RyanSturm wrote: > On 2016/05/03 ...
4 years, 7 months ago (2016-05-03 19:32:53 UTC) #41
bengr
lgtm. The clones seem like a bit much, but there's disagreement among owners as to ...
4 years, 7 months ago (2016-05-03 22:13:16 UTC) #42
bengr
lgtm. The clones seem like a bit much, but there's disagreement among owners as to ...
4 years, 7 months ago (2016-05-03 22:13:32 UTC) #43
Bryan McQuade
LGTM. As an aside, the plumbing and static_casting needed to make this work makes me ...
4 years, 7 months ago (2016-05-04 14:28:23 UTC) #44
Bryan McQuade
On 2016/05/04 at 14:28:23, Bryan McQuade wrote: > LGTM. > > As an aside, the ...
4 years, 7 months ago (2016-05-04 14:59:46 UTC) #45
nasko
On 2016/05/03 19:32:53, mmenke wrote: > https://codereview.chromium.org/1721813002/diff/400001/content/browser/loader/navigation_resource_handler.cc > File content/browser/loader/navigation_resource_handler.cc (right): > > https://codereview.chromium.org/1721813002/diff/400001/content/browser/loader/navigation_resource_handler.cc#newcode108 > ...
4 years, 7 months ago (2016-05-04 16:16:15 UTC) #46
nasko
On 2016/05/04 14:59:46, Bryan McQuade wrote: > On 2016/05/04 at 14:28:23, Bryan McQuade wrote: > ...
4 years, 7 months ago (2016-05-04 16:20:28 UTC) #47
RyanSturm
On 2016/05/04 16:20:28, nasko (slow) wrote: > On 2016/05/04 14:59:46, Bryan McQuade wrote: > > ...
4 years, 7 months ago (2016-05-04 18:11:41 UTC) #48
RyanSturm
On 2016/05/04 18:11:41, RyanSturm wrote: > On 2016/05/04 16:20:28, nasko (slow) wrote: > > On ...
4 years, 7 months ago (2016-05-04 19:45:46 UTC) #49
RyanSturm
Changed lifetime of ChromeNavigationData to be owned by URLRequest via UserData. https://codereview.chromium.org/1721813002/diff/420001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer_unittest.cc File chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer_unittest.cc (right): ...
4 years, 7 months ago (2016-05-04 22:35:41 UTC) #51
Bryan McQuade
https://codereview.chromium.org/1721813002/diff/500001/chrome/browser/page_load_metrics/observers/page_load_metrics_observer_test_harness.cc File chrome/browser/page_load_metrics/observers/page_load_metrics_observer_test_harness.cc (right): https://codereview.chromium.org/1721813002/diff/500001/chrome/browser/page_load_metrics/observers/page_load_metrics_observer_test_harness.cc#newcode12 chrome/browser/page_load_metrics/observers/page_load_metrics_observer_test_harness.cc:12: #include "content/public/browser/navigation_data.h" let's revert this file https://codereview.chromium.org/1721813002/diff/500001/chrome/browser/page_load_metrics/observers/page_load_metrics_observer_test_harness.h File chrome/browser/page_load_metrics/observers/page_load_metrics_observer_test_harness.h ...
4 years, 7 months ago (2016-05-06 00:38:53 UTC) #53
mmenke
https://codereview.chromium.org/1721813002/diff/520001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc File chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc (right): https://codereview.chromium.org/1721813002/diff/520001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc#newcode742 chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc:742: data->SetDataReductionProxyData(data_reduction_proxy_data->DeepCopy()); This seems worse than the last iteration - ...
4 years, 7 months ago (2016-05-06 18:59:36 UTC) #54
RyanSturm
https://codereview.chromium.org/1721813002/diff/520001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc File chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc (right): https://codereview.chromium.org/1721813002/diff/520001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc#newcode742 chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc:742: data->SetDataReductionProxyData(data_reduction_proxy_data->DeepCopy()); On 2016/05/06 18:59:36, mmenke wrote: > This seems ...
4 years, 7 months ago (2016-05-06 20:55:44 UTC) #55
nasko
https://codereview.chromium.org/1721813002/diff/560001/chrome/browser/renderer_host/chrome_navigation_data_unittest.cc File chrome/browser/renderer_host/chrome_navigation_data_unittest.cc (right): https://codereview.chromium.org/1721813002/diff/560001/chrome/browser/renderer_host/chrome_navigation_data_unittest.cc#newcode41 chrome/browser/renderer_host/chrome_navigation_data_unittest.cc:41: EXPECT_FALSE(!clone_chrome_data->GetDataReductionProxyData()); Why not EXPECT_TRUE? https://codereview.chromium.org/1721813002/diff/560001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc File chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc (right): https://codereview.chromium.org/1721813002/diff/560001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc#newcode811 ...
4 years, 7 months ago (2016-05-09 17:35:44 UTC) #56
RyanSturm
Due to https://www.chromium.org/developers/content-module/content-api the const-ness added to NavigationData in the previous CL was changed back ...
4 years, 7 months ago (2016-05-09 18:27:32 UTC) #57
nasko
content/ LGTM. https://codereview.chromium.org/1721813002/diff/560001/content/browser/frame_host/navigator_impl_unittest.cc File content/browser/frame_host/navigator_impl_unittest.cc (right): https://codereview.chromium.org/1721813002/diff/560001/content/browser/frame_host/navigator_impl_unittest.cc#newcode22 content/browser/frame_host/navigator_impl_unittest.cc:22: #include "content/public/browser/navigation_data.h" On 2016/05/09 18:27:31, RyanSturm wrote: ...
4 years, 7 months ago (2016-05-09 18:40:46 UTC) #58
mmenke
Pear earlier comment, I'll just defer to nasko.
4 years, 7 months ago (2016-05-09 18:45:54 UTC) #59
RyanSturm
thestig: PTAL @ src/chrome/browser/renderer_host asvitkine: PTAL @ histograms.xml
4 years, 7 months ago (2016-05-10 16:59:33 UTC) #61
Alexei Svitkine (slow)
lgtm
4 years, 7 months ago (2016-05-10 17:01:36 UTC) #62
Charlie Harrison
page_load_metrics lgtm
4 years, 7 months ago (2016-05-10 17:05:43 UTC) #63
Lei Zhang
lgtm https://codereview.chromium.org/1721813002/diff/640001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h File chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h (right): https://codereview.chromium.org/1721813002/diff/640001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h#newcode33 chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h:33: namespace content { nit: put this above extensions ...
4 years, 7 months ago (2016-05-10 19:09:31 UTC) #65
RyanSturm
https://codereview.chromium.org/1721813002/diff/640001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h File chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h (right): https://codereview.chromium.org/1721813002/diff/640001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h#newcode33 chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h:33: namespace content { On 2016/05/10 19:09:31, Lei Zhang wrote: ...
4 years, 7 months ago (2016-05-10 21:05:32 UTC) #66
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1721813002/660001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1721813002/660001
4 years, 7 months ago (2016-05-11 21:15:19 UTC) #69
commit-bot: I haz the power
Committed patchset #33 (id:660001)
4 years, 7 months ago (2016-05-11 22:29:03 UTC) #71
commit-bot: I haz the power
4 years, 7 months ago (2016-05-11 22:30:53 UTC) #73
Message was sent while issue was closed.
Patchset 33 (id:??) landed as
https://crrev.com/fe32816d121c9c779c56d52e63b26d2746ed9987
Cr-Commit-Position: refs/heads/master@{#393087}

Powered by Google App Engine
This is Rietveld 408576698