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

Issue 2553013004: Remove the app banner navigation heuristic. (Closed)

Created:
4 years ago by dominickn
Modified:
4 years ago
Reviewers:
pkotwicz, benwells, gone
CC:
chromium-reviews, dominickn+watch_chromium.org, pkotwicz+watch_chromium.org, zpeng+watch_chromium.org, agrieve+watch_chromium.org, chrome-apps-syd-reviews_chromium.org, Maria
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove the app banner navigation heuristic. App banners now use site engagement to determine when to trigger. This CL removes the old navigation-based heuristic and all tests based on it. New tests using the site engagement metric are added in their place. The app banner settings helper still records a single APP_BANNER_COULD_SHOW event for the purposes of metrics. The old vector of COULD_SHOW events is removed in this CL and replaced with a single event recorded the first time that a banner could be shown. Any additional COULD_SHOW events are ignored; all other events will overwrite old values when they are rewritten. Many tests that checked the direct/indirect navigation accumulation have been removed. New tests for checking the backoff period (and changing that backoff) have been added in their place. BUG=667073 Committed: https://crrev.com/598df313ae463915342386163972df774453c570 Cr-Commit-Position: refs/heads/master@{#438452}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Remove last_transition_type_ #

Patch Set 3 : Rebase #

Total comments: 9

Patch Set 4 : Remove @RetryOnFailure #

Patch Set 5 : Add comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+402 lines, -1352 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/banners/AppBannerManager.java View 2 chunks +19 lines, -12 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/banners/AppBannerManagerTest.java View 1 2 3 11 chunks +135 lines, -65 lines 0 comments Download
M chrome/browser/android/banners/app_banner_manager_android.cc View 2 chunks +13 lines, -6 lines 0 comments Download
M chrome/browser/banners/app_banner_manager.h View 1 3 chunks +4 lines, -11 lines 0 comments Download
M chrome/browser/banners/app_banner_manager.cc View 1 2 5 chunks +8 lines, -13 lines 0 comments Download
M chrome/browser/banners/app_banner_manager_browsertest.cc View 5 chunks +96 lines, -250 lines 0 comments Download
M chrome/browser/banners/app_banner_settings_helper.h View 1 2 3 4 8 chunks +16 lines, -47 lines 0 comments Download
M chrome/browser/banners/app_banner_settings_helper.cc View 1 2 20 chunks +27 lines, -318 lines 0 comments Download
M chrome/browser/banners/app_banner_settings_helper_unittest.cc View 7 chunks +72 lines, -616 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/TabLoadObserver.java View 2 chunks +12 lines, -1 line 0 comments Download
M chrome/test/data/banners/prompt_in_handler_test_page.html View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/test/data/banners/prompt_test_page.html View 1 chunk +0 lines, -3 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 41 (29 generated)
dominickn
benwells: PTAL at chrome/browser/banners, chrome/common, and the test files dfalcantara: PTAL at Android code Thanks! ...
4 years ago (2016-12-07 12:00:16 UTC) #7
pkotwicz
https://codereview.chromium.org/2553013004/diff/1/chrome/browser/banners/app_banner_manager.cc File chrome/browser/banners/app_banner_manager.cc (right): https://codereview.chromium.org/2553013004/diff/1/chrome/browser/banners/app_banner_manager.cc#newcode375 chrome/browser/banners/app_banner_manager.cc:375: last_transition_type_ = handle->GetPageTransition(); Drive by: It looks like |last_transition_type_| ...
4 years ago (2016-12-07 14:48:15 UTC) #9
dominickn
https://codereview.chromium.org/2553013004/diff/1/chrome/browser/banners/app_banner_manager.cc File chrome/browser/banners/app_banner_manager.cc (right): https://codereview.chromium.org/2553013004/diff/1/chrome/browser/banners/app_banner_manager.cc#newcode375 chrome/browser/banners/app_banner_manager.cc:375: last_transition_type_ = handle->GetPageTransition(); On 2016/12/07 14:48:15, pkotwicz wrote: > ...
4 years ago (2016-12-08 02:41:50 UTC) #16
gone
lgtm https://codereview.chromium.org/2553013004/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/banners/AppBannerManagerTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/banners/AppBannerManagerTest.java (right): https://codereview.chromium.org/2553013004/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/banners/AppBannerManagerTest.java#newcode424 chrome/android/javatests/src/org/chromium/chrome/browser/banners/AppBannerManagerTest.java:424: @RetryOnFailure Don't know if new tests are supposed ...
4 years ago (2016-12-08 19:51:21 UTC) #19
benwells
https://codereview.chromium.org/2553013004/diff/40001/chrome/browser/banners/app_banner_manager_browsertest.cc File chrome/browser/banners/app_banner_manager_browsertest.cc (right): https://codereview.chromium.org/2553013004/diff/40001/chrome/browser/banners/app_banner_manager_browsertest.cc#newcode27 chrome/browser/banners/app_banner_manager_browsertest.cc:27: // to changes in SW code. lolz https://codereview.chromium.org/2553013004/diff/40001/chrome/browser/banners/app_banner_settings_helper.cc File ...
4 years ago (2016-12-09 04:55:05 UTC) #20
dominickn
Thanks! https://codereview.chromium.org/2553013004/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/banners/AppBannerManagerTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/banners/AppBannerManagerTest.java (right): https://codereview.chromium.org/2553013004/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/banners/AppBannerManagerTest.java#newcode424 chrome/android/javatests/src/org/chromium/chrome/browser/banners/AppBannerManagerTest.java:424: @RetryOnFailure On 2016/12/08 19:51:21, dfalcantara (check my queue) ...
4 years ago (2016-12-09 05:27:28 UTC) #21
benwells
https://codereview.chromium.org/2553013004/diff/40001/chrome/browser/banners/app_banner_settings_helper.cc File chrome/browser/banners/app_banner_settings_helper.cc (right): https://codereview.chromium.org/2553013004/diff/40001/chrome/browser/banners/app_banner_settings_helper.cc#newcode165 chrome/browser/banners/app_banner_settings_helper.cc:165: web_contents, web_contents->GetLastCommittedURL(), On 2016/12/09 05:27:28, dominickn wrote: > On ...
4 years ago (2016-12-09 05:44:56 UTC) #24
dominickn
Thanks! PTAL +cc mariakhomenko FYI https://codereview.chromium.org/2553013004/diff/40001/chrome/browser/banners/app_banner_settings_helper.h File chrome/browser/banners/app_banner_settings_helper.h (right): https://codereview.chromium.org/2553013004/diff/40001/chrome/browser/banners/app_banner_settings_helper.h#newcode56 chrome/browser/banners/app_banner_settings_helper.h:56: APP_BANNER_EVENT_COULD_SHOW, On 2016/12/09 05:44:55, ...
4 years ago (2016-12-12 02:23:15 UTC) #29
benwells
lgtm
4 years ago (2016-12-14 05:55:37 UTC) #32
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/2553013004/80001
4 years ago (2016-12-14 06:02:06 UTC) #36
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-14 07:26:52 UTC) #39
commit-bot: I haz the power
4 years ago (2016-12-14 07:29:44 UTC) #41
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/598df313ae463915342386163972df774453c570
Cr-Commit-Position: refs/heads/master@{#438452}

Powered by Google App Engine
This is Rietveld 408576698