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

Issue 2024953005: Allow app banners to be triggered by increases in site engagement. (Closed)

Created:
4 years, 6 months ago by dominickn
Modified:
4 years, 5 months ago
Reviewers:
benwells
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@site-engagement-callback
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow app banners to be triggered by increases in site engagement. This CL makes the app banner manager a site engagement observer. This allows banners to be triggered when the engagement for a site reaches a sufficient level, rather than being restricted to triggering on navigations. The experiment switch for enabling site engagement banners is moved back into the AppBannerTriggering variation from the site engagement variation, as site engagement has now launched to the stable channel. A future CL will remove the existing navigation-based heuristic entirely. BUG=616322 TBR=sky@chromium.org Committed: https://crrev.com/ecc791758fba66a0906b9450780a23e898a44b63 Cr-Commit-Position: refs/heads/master@{#402726}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Revamp #

Patch Set 3 : Remove obsolete test #

Total comments: 18

Patch Set 4 : Address reviewer comments #

Patch Set 5 : Address reviewer comments. Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -122 lines) Patch
M chrome/browser/android/banners/app_banner_manager_android.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/banners/app_banner_manager.h View 1 2 3 4 6 chunks +26 lines, -14 lines 0 comments Download
M chrome/browser/banners/app_banner_manager.cc View 1 2 3 4 7 chunks +82 lines, -25 lines 0 comments Download
M chrome/browser/banners/app_banner_settings_helper.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/banners/app_banner_settings_helper.cc View 1 7 chunks +28 lines, -37 lines 0 comments Download
M chrome/browser/banners/app_banner_settings_helper_unittest.cc View 1 2 1 chunk +0 lines, -40 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
dominickn
PTAL - this is an initial upload. Tests are still to be added, but your ...
4 years, 6 months ago (2016-06-01 03:47:30 UTC) #2
benwells
https://codereview.chromium.org/2024953005/diff/1/chrome/browser/banners/app_banner_manager.cc File chrome/browser/banners/app_banner_manager.cc (right): https://codereview.chromium.org/2024953005/diff/1/chrome/browser/banners/app_banner_manager.cc#newcode121 chrome/browser/banners/app_banner_manager.cc:121: is_visible_ = false; What's this for? Is this something ...
4 years, 6 months ago (2016-06-02 04:44:36 UTC) #3
dominickn
https://codereview.chromium.org/2024953005/diff/1/chrome/browser/banners/app_banner_manager.cc File chrome/browser/banners/app_banner_manager.cc (right): https://codereview.chromium.org/2024953005/diff/1/chrome/browser/banners/app_banner_manager.cc#newcode121 chrome/browser/banners/app_banner_manager.cc:121: is_visible_ = false; On 2016/06/02 04:44:36, benwells wrote: > ...
4 years, 6 months ago (2016-06-02 04:54:38 UTC) #4
dominickn
PTAL, thanks! You should ignore the diff against the initial upload as a lot of ...
4 years, 6 months ago (2016-06-23 08:53:03 UTC) #5
benwells
https://codereview.chromium.org/2024953005/diff/40001/chrome/browser/banners/app_banner_manager.cc File chrome/browser/banners/app_banner_manager.cc (left): https://codereview.chromium.org/2024953005/diff/40001/chrome/browser/banners/app_banner_manager.cc#oldcode66 chrome/browser/banners/app_banner_manager.cc:66: void AppBannerManager::DidNavigateMainFrame( Why did you change this from DidNavigateMainFrame ...
4 years, 5 months ago (2016-06-28 00:57:50 UTC) #6
dominickn
Thanks! Looks like the build is broken on the ChromeOS bots. https://codereview.chromium.org/2024953005/diff/40001/chrome/browser/banners/app_banner_manager.cc File chrome/browser/banners/app_banner_manager.cc (left): ...
4 years, 5 months ago (2016-06-28 03:52:29 UTC) #7
benwells
lgtm with an optional nit https://codereview.chromium.org/2024953005/diff/40001/chrome/browser/banners/app_banner_manager.cc File chrome/browser/banners/app_banner_manager.cc (right): https://codereview.chromium.org/2024953005/diff/40001/chrome/browser/banners/app_banner_manager.cc#newcode126 chrome/browser/banners/app_banner_manager.cc:126: banner_requested_) { On 2016/06/28 ...
4 years, 5 months ago (2016-06-29 03:38:24 UTC) #8
dominickn
Thanks! TBR'ing sky@ for the call site change in browser.cc https://codereview.chromium.org/2024953005/diff/40001/chrome/browser/banners/app_banner_manager.cc File chrome/browser/banners/app_banner_manager.cc (right): https://codereview.chromium.org/2024953005/diff/40001/chrome/browser/banners/app_banner_manager.cc#newcode126 ...
4 years, 5 months ago (2016-06-29 04:18:58 UTC) #10
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/2024953005/80001
4 years, 5 months ago (2016-06-29 04:19:26 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-06-29 05:05:04 UTC) #15
commit-bot: I haz the power
4 years, 5 months ago (2016-06-29 05:06:36 UTC) #17
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/ecc791758fba66a0906b9450780a23e898a44b63
Cr-Commit-Position: refs/heads/master@{#402726}

Powered by Google App Engine
This is Rietveld 408576698