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

Issue 2916253002: Add UMA to determine how often we offline a page with previews. (Closed)

Created:
3 years, 6 months ago by Pete Williamson
Modified:
3 years, 6 months ago
CC:
chromium-reviews, jam, Randy Smith (Not in Mondays), darin-cc_chromium.org, asvitkine+watch_chromium.org, loading-reviews_chromium.org, mmenke
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMA to determine how often we offline a page with previews. We suspect that page previews may be causing problems with offline pages. To understand the severity of the problem, we'll add a new histogram that measures how often we turn on previews while offlining a page. BUG=703875 Review-Url: https://codereview.chromium.org/2916253002 Cr-Commit-Position: refs/heads/master@{#478483} Committed: https://chromium.googlesource.com/chromium/src/+/61b63cbc244f348331c91d78402eb843bd185408

Patch Set 1 #

Total comments: 23

Patch Set 2 : CR feedback per RyanSturm and Chili #

Patch Set 3 : Add a unit test, and a bit more detail to an existing test. #

Total comments: 2

Patch Set 4 : Added a check for a server offlined lite page, and both ways of disabling #

Patch Set 5 : Fix copying of previews_state with the ChromeNavigationData object #

Total comments: 4

Patch Set 6 : CR fixes per RyanSturm #

Total comments: 2

Patch Set 7 : Histograms fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -10 lines) Patch
M chrome/browser/loader/chrome_navigation_data.h View 3 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/loader/chrome_navigation_data.cc View 1 2 3 4 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/offline_pages/background_loader_offliner.cc View 1 2 3 4 5 6 4 chunks +41 lines, -0 lines 0 comments Download
M chrome/browser/offline_pages/background_loader_offliner_unittest.cc View 1 2 2 chunks +59 lines, -0 lines 0 comments Download
M content/public/common/previews_state.h View 2 chunks +3 lines, -3 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (19 generated)
Pete Williamson
https://codereview.chromium.org/2916253002/diff/1/chrome/browser/offline_pages/background_loader_offliner.cc File chrome/browser/offline_pages/background_loader_offliner.cc (right): https://codereview.chromium.org/2916253002/diff/1/chrome/browser/offline_pages/background_loader_offliner.cc#newcode333 chrome/browser/offline_pages/background_loader_offliner.cc:333: // Use some form of RTTI to know what ...
3 years, 6 months ago (2017-06-02 00:47:37 UTC) #2
chili
https://codereview.chromium.org/2916253002/diff/1/chrome/browser/offline_pages/background_loader_offliner.cc File chrome/browser/offline_pages/background_loader_offliner.cc (right): https://codereview.chromium.org/2916253002/diff/1/chrome/browser/offline_pages/background_loader_offliner.cc#newcode80 chrome/browser/offline_pages/background_loader_offliner.cc:80: int previews_enabling = 0; alternate names: preview_state_numeration? preview_state? is_previews_enabled? ...
3 years, 6 months ago (2017-06-02 01:38:08 UTC) #3
RyanSturm
https://codereview.chromium.org/2916253002/diff/1/chrome/browser/loader/chrome_navigation_data.cc File chrome/browser/loader/chrome_navigation_data.cc (right): https://codereview.chromium.org/2916253002/diff/1/chrome/browser/loader/chrome_navigation_data.cc#newcode8 chrome/browser/loader/chrome_navigation_data.cc:8: #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_data.h" Don't need data_reduction_proxy_data.h included in the header ...
3 years, 6 months ago (2017-06-02 20:50:34 UTC) #4
RyanSturm
Also, have you verified this works with chrome://histograms? https://codereview.chromium.org/2916253002/diff/1/chrome/browser/offline_pages/background_loader_offliner.cc File chrome/browser/offline_pages/background_loader_offliner.cc (right): https://codereview.chromium.org/2916253002/diff/1/chrome/browser/offline_pages/background_loader_offliner.cc#newcode333 chrome/browser/offline_pages/background_loader_offliner.cc:333: // ...
3 years, 6 months ago (2017-06-02 20:56:29 UTC) #5
RyanSturm
https://codereview.chromium.org/2916253002/diff/1/chrome/browser/offline_pages/background_loader_offliner.cc File chrome/browser/offline_pages/background_loader_offliner.cc (right): https://codereview.chromium.org/2916253002/diff/1/chrome/browser/offline_pages/background_loader_offliner.cc#newcode333 chrome/browser/offline_pages/background_loader_offliner.cc:333: // Use some form of RTTI to know what ...
3 years, 6 months ago (2017-06-02 20:57:56 UTC) #6
Pete Williamson
RyanSturm: Yes, I did test these at chrome:histograms, and I saw both the enabled and ...
3 years, 6 months ago (2017-06-02 21:40:33 UTC) #7
RyanSturm
https://codereview.chromium.org/2916253002/diff/1/chrome/browser/offline_pages/background_loader_offliner_unittest.cc File chrome/browser/offline_pages/background_loader_offliner_unittest.cc (right): https://codereview.chromium.org/2916253002/diff/1/chrome/browser/offline_pages/background_loader_offliner_unittest.cc#newcode591 chrome/browser/offline_pages/background_loader_offliner_unittest.cc:591: 0, // PreviewsOff On 2017/06/02 21:40:32, Pete Williamson wrote: ...
3 years, 6 months ago (2017-06-02 22:14:25 UTC) #8
Pete Williamson
https://codereview.chromium.org/2916253002/diff/1/chrome/browser/offline_pages/background_loader_offliner_unittest.cc File chrome/browser/offline_pages/background_loader_offliner_unittest.cc (right): https://codereview.chromium.org/2916253002/diff/1/chrome/browser/offline_pages/background_loader_offliner_unittest.cc#newcode591 chrome/browser/offline_pages/background_loader_offliner_unittest.cc:591: 0, // PreviewsOff On 2017/06/02 22:14:25, RyanSturm wrote: > ...
3 years, 6 months ago (2017-06-02 23:17:42 UTC) #9
RyanSturm
https://codereview.chromium.org/2916253002/diff/40001/chrome/browser/offline_pages/background_loader_offliner.cc File chrome/browser/offline_pages/background_loader_offliner.cc (right): https://codereview.chromium.org/2916253002/diff/40001/chrome/browser/offline_pages/background_loader_offliner.cc#newcode81 chrome/browser/offline_pages/background_loader_offliner.cc:81: if (previews_state != content::PreviewsTypes::PREVIEWS_OFF) There is some subtlety with ...
3 years, 6 months ago (2017-06-05 20:43:59 UTC) #14
Pete Williamson
RyanSturm: When I look at this with logging at runtime, I typically see PREVIEWS_UNSPECIFIED. Does ...
3 years, 6 months ago (2017-06-05 21:40:47 UTC) #15
RyanSturm
On 2017/06/05 21:40:47, Pete Williamson wrote: > RyanSturm: When I look at this with logging ...
3 years, 6 months ago (2017-06-05 21:54:27 UTC) #16
Pete Williamson
On 2017/06/05 21:54:27, RyanSturm wrote: > On 2017/06/05 21:40:47, Pete Williamson wrote: > > RyanSturm: ...
3 years, 6 months ago (2017-06-05 21:59:16 UTC) #17
RyanSturm
On 2017/06/05 21:59:16, Pete Williamson wrote: > On 2017/06/05 21:54:27, RyanSturm wrote: > > On ...
3 years, 6 months ago (2017-06-05 22:03:19 UTC) #18
Pete Williamson
Ah, the problem was that we were not properly copying the ChromeNavigationData, it failed to ...
3 years, 6 months ago (2017-06-06 00:47:09 UTC) #19
RyanSturm
lgtm % some nit comments. https://codereview.chromium.org/2916253002/diff/80001/chrome/browser/offline_pages/background_loader_offliner.cc File chrome/browser/offline_pages/background_loader_offliner.cc (right): https://codereview.chromium.org/2916253002/diff/80001/chrome/browser/offline_pages/background_loader_offliner.cc#newcode81 chrome/browser/offline_pages/background_loader_offliner.cc:81: content::PreviewsState previews_state) { nit: ...
3 years, 6 months ago (2017-06-06 20:49:52 UTC) #20
Pete Williamson
Fixes per RyanSturm https://codereview.chromium.org/2916253002/diff/80001/chrome/browser/offline_pages/background_loader_offliner.cc File chrome/browser/offline_pages/background_loader_offliner.cc (right): https://codereview.chromium.org/2916253002/diff/80001/chrome/browser/offline_pages/background_loader_offliner.cc#newcode81 chrome/browser/offline_pages/background_loader_offliner.cc:81: content::PreviewsState previews_state) { On 2017/06/06 20:49:52, ...
3 years, 6 months ago (2017-06-06 21:39:47 UTC) #21
chili
lgtm
3 years, 6 months ago (2017-06-06 22:22:30 UTC) #22
Pete Williamson
holte: Please look at Histograms CSHarrison: please look at chrome/browser/loader We changed chrome/browser/loader to allow ...
3 years, 6 months ago (2017-06-06 22:44:50 UTC) #24
Charlie Harrison
LGTM
3 years, 6 months ago (2017-06-07 00:08:37 UTC) #27
Pete Williamson
+Nasko - Please review previews_state.h (only). I discovered that the include header was misformatted, I ...
3 years, 6 months ago (2017-06-07 17:25:53 UTC) #31
Steven Holte
lgtm
3 years, 6 months ago (2017-06-07 22:21:54 UTC) #32
Steven Holte
https://codereview.chromium.org/2916253002/diff/100001/chrome/browser/offline_pages/background_loader_offliner.cc File chrome/browser/offline_pages/background_loader_offliner.cc (right): https://codereview.chromium.org/2916253002/diff/100001/chrome/browser/offline_pages/background_loader_offliner.cc#newcode99 chrome/browser/offline_pages/background_loader_offliner.cc:99: UMA_HISTOGRAM_BOOLEAN( Actually, you probably need to change this to ...
3 years, 6 months ago (2017-06-07 22:24:47 UTC) #33
Pete Williamson
CR fixes for Holte https://codereview.chromium.org/2916253002/diff/100001/chrome/browser/offline_pages/background_loader_offliner.cc File chrome/browser/offline_pages/background_loader_offliner.cc (right): https://codereview.chromium.org/2916253002/diff/100001/chrome/browser/offline_pages/background_loader_offliner.cc#newcode99 chrome/browser/offline_pages/background_loader_offliner.cc:99: UMA_HISTOGRAM_BOOLEAN( On 2017/06/07 22:24:46, Steven ...
3 years, 6 months ago (2017-06-08 00:11:09 UTC) #34
Steven Holte
lgtm
3 years, 6 months ago (2017-06-08 01:20:36 UTC) #37
nasko
content/public/common/previews_state.h LGTM
3 years, 6 months ago (2017-06-09 22:27:00 UTC) #40
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/2916253002/120001
3 years, 6 months ago (2017-06-09 23:27:43 UTC) #43
commit-bot: I haz the power
3 years, 6 months ago (2017-06-10 00:59:03 UTC) #46
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/61b63cbc244f348331c91d78402e...

Powered by Google App Engine
This is Rietveld 408576698