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

Side by Side Diff: chrome/browser/banners/app_banner_settings_helper.h

Issue 1309803005: Allow direct and indirect navigation values to be varied via field trial. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix broken test that trybots didn't catch Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_BANNERS_APP_BANNER_SETTINGS_HELPER_H_ 5 #ifndef CHROME_BROWSER_BANNERS_APP_BANNER_SETTINGS_HELPER_H_
6 #define CHROME_BROWSER_BANNERS_APP_BANNER_SETTINGS_HELPER_H_ 6 #define CHROME_BROWSER_BANNERS_APP_BANNER_SETTINGS_HELPER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // Set the minimum number of minutes between banner visits that will 125 // Set the minimum number of minutes between banner visits that will
126 // trigger a could show banner event. This must be less than the 126 // trigger a could show banner event. This must be less than the
127 // number of minutes in a day, and evenly divide the number of minutes 127 // number of minutes in a day, and evenly divide the number of minutes
128 // in a day. 128 // in a day.
129 static void SetMinimumMinutesBetweenVisits(unsigned int minutes); 129 static void SetMinimumMinutesBetweenVisits(unsigned int minutes);
130 130
131 // Bucket a given time to the given resolution in local time. 131 // Bucket a given time to the given resolution in local time.
132 static base::Time BucketTimeToResolution(base::Time time, 132 static base::Time BucketTimeToResolution(base::Time time,
133 unsigned int minutes); 133 unsigned int minutes);
134 134
135 // Queries a field trial for updates to the default number of minutes between 135 // Updates all values from field trial.
136 // site visits counted for the purposes of displaying a banner. 136 static void UpdateFromFieldTrial();
137 static void UpdateMinutesBetweenVisits();
138 137
139 private: 138 private:
140 DISALLOW_IMPLICIT_CONSTRUCTORS(AppBannerSettingsHelper); 139 DISALLOW_IMPLICIT_CONSTRUCTORS(AppBannerSettingsHelper);
141 }; 140 };
142 141
143 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_SETTINGS_HELPER_H_ 142 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_SETTINGS_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/banners/app_banner_manager.cc ('k') | chrome/browser/banners/app_banner_settings_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698