Allow the minimum time between banner trigger visits to be varied via field trials.
commitb6d06bfc9c3dceb0a8f4ef88838705b8d5334d5a
authordominickn <dominickn@chromium.org>
Tue, 25 Aug 2015 00:56:23 +0000 (24 17:56 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 25 Aug 2015 00:56:58 +0000 (25 00:56 +0000)
treec99b2e7e602d67d42f593038a822d1d3ef68c9b4
parent2d6c7414f7a68cf8fb92bf7890a820b6bb22d9d2
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

Review URL: https://codereview.chromium.org/1306693005

Cr-Commit-Position: refs/heads/master@{#345228}
chrome/browser/banners/app_banner_manager.cc
chrome/browser/banners/app_banner_settings_helper.cc
chrome/browser/banners/app_banner_settings_helper.h
chrome/browser/banners/app_banner_settings_helper_unittest.cc