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

Issue 1306693005: Allow the minimum time between banner trigger visits to be varied via field trials. (Closed)

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

Description

Allow the minimum time between banner trigger visits to be varied via field trials. The current heuristics for banner triggering are hard-coded. This CL allows the minimum time between visits that are counted for the purposes of banner triggering to be varied via field trials. The time will default to the current value, which is one visit per day (implemented by bucketing all visits to local midnight time). The new implementation will bucket to a given resolution in minutes, where the specified resolution is less than one day and evenly divisible into the number of minutes in a day. BUG=487519 Committed: https://crrev.com/b6d06bfc9c3dceb0a8f4ef88838705b8d5334d5a Cr-Commit-Position: refs/heads/master@{#345228}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressing reviewer feedback #

Patch Set 3 : Fix unit tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+331 lines, -8 lines) Patch
M chrome/browser/banners/app_banner_manager.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/banners/app_banner_settings_helper.h View 1 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/banners/app_banner_settings_helper.cc View 1 6 chunks +51 lines, -4 lines 0 comments Download
M chrome/browser/banners/app_banner_settings_helper_unittest.cc View 1 2 9 chunks +264 lines, -4 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
dominickn
PTAL, thanks!
5 years, 4 months ago (2015-08-24 04:28:52 UTC) #2
benwells
just some minor things; you shouldn't do the test refactoring mentioned now as it will ...
5 years, 4 months ago (2015-08-24 06:55:52 UTC) #3
dominickn
Thanks for the feedback. https://codereview.chromium.org/1306693005/diff/1/chrome/browser/banners/app_banner_manager.cc File chrome/browser/banners/app_banner_manager.cc (right): https://codereview.chromium.org/1306693005/diff/1/chrome/browser/banners/app_banner_manager.cc#newcode107 chrome/browser/banners/app_banner_manager.cc:107: void AppBannerManager::UpdateMinutesBetweenVisits() { On 2015/08/24 ...
5 years, 4 months ago (2015-08-24 07:43:16 UTC) #4
benwells
lgtm if you update the unit tests for your last patch set :)
5 years, 4 months ago (2015-08-24 08:01:58 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1306693005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1306693005/40001
5 years, 4 months ago (2015-08-25 00:24:06 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 4 months ago (2015-08-25 00:56:31 UTC) #9
commit-bot: I haz the power
5 years, 4 months ago (2015-08-25 00:57:08 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b6d06bfc9c3dceb0a8f4ef88838705b8d5334d5a
Cr-Commit-Position: refs/heads/master@{#345228}

Powered by Google App Engine
This is Rietveld 408576698