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

Issue 2178833002: Add new app banner metrics using InstallableStatusCode. (Closed)

Created:
4 years, 4 months ago by dominickn
Modified:
4 years, 4 months ago
Reviewers:
benwells, Ilya Sherman, gone
CC:
chromium-reviews, dominickn+watch_chromium.org, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@banner-integrate-checker-no-refptr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add new app banner metrics using InstallableStatusCode. The InstallableManager reports status codes to signal if the checking pipeline failed in some way. This CL introduces a new UMA metric to report the value of this code, and introduces new codes to ensure that every run through the banner pipeline results in precisely one code. This new metric is intended to be the final source of truth for banners. Additional testing is added to ensure the correct histogram values are recorded. The existing metrics will be removed in a future CL. BUG=628921 Committed: https://crrev.com/df301a20d16cba20fa4cf459cf4130c1ecf4127c Cr-Commit-Position: refs/heads/master@{#412143}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase #

Total comments: 7

Patch Set 5 : Addressing comments #

Total comments: 9

Patch Set 6 : Addressing comments, fixing unit tests #

Patch Set 7 : Address comments #

Total comments: 2

Patch Set 8 : Fix histogram name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+369 lines, -175 lines) Patch
M chrome/browser/android/banners/app_banner_manager_android.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/android/banners/app_banner_manager_android.cc View 1 2 3 4 7 chunks +13 lines, -6 lines 0 comments Download
M chrome/browser/banners/app_banner_manager.h View 1 2 3 4 5 6 4 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/banners/app_banner_manager.cc View 1 2 3 4 5 6 13 chunks +60 lines, -26 lines 0 comments Download
M chrome/browser/banners/app_banner_manager_browsertest.cc View 1 2 3 4 15 chunks +71 lines, -31 lines 0 comments Download
M chrome/browser/banners/app_banner_manager_desktop.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/banners/app_banner_metrics.h View 1 2 3 4 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/banners/app_banner_metrics.cc View 1 2 3 4 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/banners/app_banner_settings_helper.h View 1 2 3 4 2 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/banners/app_banner_settings_helper.cc View 1 2 3 4 8 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/banners/app_banner_settings_helper_unittest.cc View 1 2 3 4 5 13 chunks +91 lines, -60 lines 0 comments Download
M chrome/browser/installable/installable_logging.h View 1 2 3 4 3 chunks +14 lines, -7 lines 0 comments Download
M chrome/browser/installable/installable_logging.cc View 1 2 3 4 3 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/installable/installable_manager.h View 1 2 3 4 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/installable/installable_manager.cc View 1 2 3 4 6 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/installable/installable_manager_browsertest.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/installable/installable_manager_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 2 chunks +42 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (28 generated)
dominickn
PTAL, thanks! I promise this CL is much smaller than the previous two in this ...
4 years, 4 months ago (2016-08-10 05:02:21 UTC) #4
gone
What'd you decide on the last CL about combining all of these entries into a ...
4 years, 4 months ago (2016-08-10 21:02:51 UTC) #8
benwells
This feels pretty manual / error prone - every exit condition needs to be found ...
4 years, 4 months ago (2016-08-11 04:47:35 UTC) #9
dominickn
Changed InstallableErrorCode to InstallableStatusCode, and added a boolean need_to_log_error_ with DCHECKs. I had to change ...
4 years, 4 months ago (2016-08-11 07:00:19 UTC) #13
benwells
overall i like it, just some questions. https://codereview.chromium.org/2178833002/diff/80001/chrome/browser/banners/app_banner_manager.cc File chrome/browser/banners/app_banner_manager.cc (right): https://codereview.chromium.org/2178833002/diff/80001/chrome/browser/banners/app_banner_manager.cc#newcode310 chrome/browser/banners/app_banner_manager.cc:310: need_to_log_status_ = ...
4 years, 4 months ago (2016-08-11 07:14:23 UTC) #14
dominickn
Thanks! https://codereview.chromium.org/2178833002/diff/80001/chrome/browser/banners/app_banner_manager.cc File chrome/browser/banners/app_banner_manager.cc (right): https://codereview.chromium.org/2178833002/diff/80001/chrome/browser/banners/app_banner_manager.cc#newcode310 chrome/browser/banners/app_banner_manager.cc:310: need_to_log_status_ = false; On 2016/08/11 07:14:23, benwells wrote: ...
4 years, 4 months ago (2016-08-11 08:13:38 UTC) #19
benwells
lgtm with the race addressed https://codereview.chromium.org/2178833002/diff/80001/chrome/browser/banners/app_banner_manager.cc File chrome/browser/banners/app_banner_manager.cc (right): https://codereview.chromium.org/2178833002/diff/80001/chrome/browser/banners/app_banner_manager.cc#newcode310 chrome/browser/banners/app_banner_manager.cc:310: need_to_log_status_ = false; On ...
4 years, 4 months ago (2016-08-12 01:34:23 UTC) #22
dominickn
Thanks! I've clarified the comments, and added a call to invalidate weak pointers in Stop() ...
4 years, 4 months ago (2016-08-12 04:37:37 UTC) #25
dominickn
Actually +isherman this time. PTAL at histograms, thanks!
4 years, 4 months ago (2016-08-12 05:44:21 UTC) #29
gone
lgtm
4 years, 4 months ago (2016-08-15 20:39:14 UTC) #30
Ilya Sherman
Metrics LGTM % a nit: https://codereview.chromium.org/2178833002/diff/120001/chrome/browser/banners/app_banner_metrics.cc File chrome/browser/banners/app_banner_metrics.cc (right): https://codereview.chromium.org/2178833002/diff/120001/chrome/browser/banners/app_banner_metrics.cc#newcode21 chrome/browser/banners/app_banner_metrics.cc:21: "AppBanners.InstallableStatusCode"; nit: This doesn't ...
4 years, 4 months ago (2016-08-15 22:02:20 UTC) #31
dominickn
Thanks! https://codereview.chromium.org/2178833002/diff/120001/chrome/browser/banners/app_banner_metrics.cc File chrome/browser/banners/app_banner_metrics.cc (right): https://codereview.chromium.org/2178833002/diff/120001/chrome/browser/banners/app_banner_metrics.cc#newcode21 chrome/browser/banners/app_banner_metrics.cc:21: "AppBanners.InstallableStatusCode"; On 2016/08/15 22:02:20, Ilya Sherman wrote: > ...
4 years, 4 months ago (2016-08-16 00:30:43 UTC) #33
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/2178833002/140001
4 years, 4 months ago (2016-08-16 01:32:12 UTC) #39
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 4 months ago (2016-08-16 02:32:45 UTC) #41
commit-bot: I haz the power
4 years, 4 months ago (2016-08-16 02:34:46 UTC) #43
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/df301a20d16cba20fa4cf459cf4130c1ecf4127c
Cr-Commit-Position: refs/heads/master@{#412143}

Powered by Google App Engine
This is Rietveld 408576698