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

Issue 2105173002: Add enum-based UMA reporting to automatic redirect logic of Offline Pages. (Closed)

Created:
4 years, 5 months ago by Dmitry Titov
Modified:
4 years, 5 months ago
Reviewers:
dewittj, Mark P, jianli, fgorski
CC:
chromium-reviews, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, asvitkine+watch_chromium.org, dimich+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add enum-based UMA reporting to automatic redirect logic of Offline Pages. Removes 3 other counter-based UMA histograms that are now replaced with one. BUG=622424 Committed: https://crrev.com/853787e334f8a353abbb44189c872b5a40f2330e Cr-Commit-Position: refs/heads/master@{#403114}

Patch Set 1 #

Total comments: 29

Patch Set 2 : addressed feedback #

Total comments: 20

Patch Set 3 : addressed feedback #

Total comments: 21

Patch Set 4 : Mark's comments addressed #

Total comments: 4

Patch Set 5 : Jian's comments addressed #

Patch Set 6 : Addressed last Mark's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -73 lines) Patch
M chrome/browser/android/offline_pages/offline_page_tab_helper.h View 1 2 3 4 5 2 chunks +34 lines, -10 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_tab_helper.cc View 1 2 3 4 7 chunks +56 lines, -46 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_tab_helper_unittest.cc View 1 5 chunks +22 lines, -17 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 chunks +31 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (7 generated)
Dmitry Titov
PTAL dewittj: overall jianli: UMA-specific (I'm replacing 3 histograms!) fgorski: optional, in case I'm missing ...
4 years, 5 months ago (2016-06-28 23:51:22 UTC) #2
dewittj
https://codereview.chromium.org/2105173002/diff/1/chrome/browser/android/offline_pages/offline_page_tab_helper.cc File chrome/browser/android/offline_pages/offline_page_tab_helper.cc (right): https://codereview.chromium.org/2105173002/diff/1/chrome/browser/android/offline_pages/offline_page_tab_helper.cc#newcode89 chrome/browser/android/offline_pages/offline_page_tab_helper.cc:89: // TODO(dimich): Not sure this is needed. Clarify and ...
4 years, 5 months ago (2016-06-29 00:16:32 UTC) #3
jianli
https://codereview.chromium.org/2105173002/diff/1/chrome/browser/android/offline_pages/offline_page_tab_helper.cc File chrome/browser/android/offline_pages/offline_page_tab_helper.cc (right): https://codereview.chromium.org/2105173002/diff/1/chrome/browser/android/offline_pages/offline_page_tab_helper.cc#newcode158 chrome/browser/android/offline_pages/offline_page_tab_helper.cc:158: // TODO(dimich): why is this? Clarify and possibly redirect ...
4 years, 5 months ago (2016-06-29 00:19:30 UTC) #4
Dmitry Titov
PTAL https://codereview.chromium.org/2105173002/diff/1/chrome/browser/android/offline_pages/offline_page_tab_helper.cc File chrome/browser/android/offline_pages/offline_page_tab_helper.cc (right): https://codereview.chromium.org/2105173002/diff/1/chrome/browser/android/offline_pages/offline_page_tab_helper.cc#newcode89 chrome/browser/android/offline_pages/offline_page_tab_helper.cc:89: // TODO(dimich): Not sure this is needed. Clarify ...
4 years, 5 months ago (2016-06-29 01:51:31 UTC) #5
fgorski
lgtm with nits and comments. https://codereview.chromium.org/2105173002/diff/20001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc File chrome/browser/android/offline_pages/offline_page_tab_helper.cc (right): https://codereview.chromium.org/2105173002/diff/20001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc#newcode89 chrome/browser/android/offline_pages/offline_page_tab_helper.cc:89: // TODO(dimich): Not sure ...
4 years, 5 months ago (2016-06-29 17:01:16 UTC) #6
dewittj
lgtm mostly https://codereview.chromium.org/2105173002/diff/1/chrome/browser/android/offline_pages/offline_page_tab_helper.cc File chrome/browser/android/offline_pages/offline_page_tab_helper.cc (right): https://codereview.chromium.org/2105173002/diff/1/chrome/browser/android/offline_pages/offline_page_tab_helper.cc#newcode101 chrome/browser/android/offline_pages/offline_page_tab_helper.cc:101: RedirectResult::DISCONNECTED_NETWORK); On 2016/06/29 01:51:31, Dmitry Titov wrote: ...
4 years, 5 months ago (2016-06-29 17:36:07 UTC) #7
Dmitry Titov
On 2016/06/29 17:36:07, dewittj wrote: > lgtm mostly > > https://codereview.chromium.org/2105173002/diff/1/chrome/browser/android/offline_pages/offline_page_tab_helper.cc > File chrome/browser/android/offline_pages/offline_page_tab_helper.cc (right): ...
4 years, 5 months ago (2016-06-29 18:05:50 UTC) #8
Dmitry Titov
PTAL +mpearson for histograms.xml https://codereview.chromium.org/2105173002/diff/20001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc File chrome/browser/android/offline_pages/offline_page_tab_helper.cc (right): https://codereview.chromium.org/2105173002/diff/20001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc#newcode89 chrome/browser/android/offline_pages/offline_page_tab_helper.cc:89: // TODO(dimich): Not sure this ...
4 years, 5 months ago (2016-06-29 18:25:47 UTC) #9
Dmitry Titov
4 years, 5 months ago (2016-06-29 18:26:11 UTC) #11
Mark P
https://codereview.chromium.org/2105173002/diff/40001/chrome/browser/android/offline_pages/offline_page_tab_helper.h File chrome/browser/android/offline_pages/offline_page_tab_helper.h (right): https://codereview.chromium.org/2105173002/diff/40001/chrome/browser/android/offline_pages/offline_page_tab_helper.h#newcode39 chrome/browser/android/offline_pages/offline_page_tab_helper.h:39: // errors (like no OfflinePageModel etc) are not included. ...
4 years, 5 months ago (2016-06-29 19:18:27 UTC) #12
jianli
lgtm https://codereview.chromium.org/2105173002/diff/40001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc File chrome/browser/android/offline_pages/offline_page_tab_helper.cc (right): https://codereview.chromium.org/2105173002/diff/40001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc#newcode166 chrome/browser/android/offline_pages/offline_page_tab_helper.cc:166: if (!offline_page) It seems that we can return ...
4 years, 5 months ago (2016-06-29 20:20:16 UTC) #13
Dmitry Titov
https://codereview.chromium.org/2105173002/diff/40001/chrome/browser/android/offline_pages/offline_page_tab_helper.h File chrome/browser/android/offline_pages/offline_page_tab_helper.h (right): https://codereview.chromium.org/2105173002/diff/40001/chrome/browser/android/offline_pages/offline_page_tab_helper.h#newcode39 chrome/browser/android/offline_pages/offline_page_tab_helper.h:39: // errors (like no OfflinePageModel etc) are not included. ...
4 years, 5 months ago (2016-06-29 20:27:42 UTC) #14
Dmitry Titov
Jians comments addressed https://codereview.chromium.org/2105173002/diff/40001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc File chrome/browser/android/offline_pages/offline_page_tab_helper.cc (right): https://codereview.chromium.org/2105173002/diff/40001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc#newcode166 chrome/browser/android/offline_pages/offline_page_tab_helper.cc:166: if (!offline_page) On 2016/06/29 20:20:16, jianli ...
4 years, 5 months ago (2016-06-29 20:38:03 UTC) #15
Dmitry Titov
Mark, it's ready for you when you are. See the comments/updates above.
4 years, 5 months ago (2016-06-29 22:10:41 UTC) #16
Mark P
Thanks for the detailed answers. histograms.xml lgtm baring several minor comments below. --mark https://codereview.chromium.org/2105173002/diff/40001/chrome/browser/android/offline_pages/offline_page_tab_helper.h File ...
4 years, 5 months ago (2016-06-30 05:09:03 UTC) #17
Dmitry Titov
Thanks for review! https://codereview.chromium.org/2105173002/diff/60001/chrome/browser/android/offline_pages/offline_page_tab_helper.h File chrome/browser/android/offline_pages/offline_page_tab_helper.h (right): https://codereview.chromium.org/2105173002/diff/60001/chrome/browser/android/offline_pages/offline_page_tab_helper.h#newcode38 chrome/browser/android/offline_pages/offline_page_tab_helper.h:38: // redirect intent and result. One ...
4 years, 5 months ago (2016-06-30 06:18:36 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/2105173002/100001
4 years, 5 months ago (2016-06-30 06:18:58 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/194618)
4 years, 5 months ago (2016-06-30 07:09:44 UTC) #23
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/2105173002/100001
4 years, 5 months ago (2016-06-30 07:39:15 UTC) #25
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-06-30 08:00:17 UTC) #26
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-30 08:00:29 UTC) #27
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 08:02:08 UTC) #29
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/853787e334f8a353abbb44189c872b5a40f2330e
Cr-Commit-Position: refs/heads/master@{#403114}

Powered by Google App Engine
This is Rietveld 408576698