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

Unified Diff: chrome/browser/banners/app_banner_settings_helper.h

Issue 2185453003: Expose a WasLaunchedRecently method using the app banner content setting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/banners/app_banner_settings_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/banners/app_banner_settings_helper.h
diff --git a/chrome/browser/banners/app_banner_settings_helper.h b/chrome/browser/banners/app_banner_settings_helper.h
index 42dfdbb198a1a39394a2b2159f6afb02fbf8a928..9ba0214051728ad1e9c88dd98d6fc401efcf729a 100644
--- a/chrome/browser/banners/app_banner_settings_helper.h
+++ b/chrome/browser/banners/app_banner_settings_helper.h
@@ -130,6 +130,14 @@ class AppBannerSettingsHelper {
const std::string& package_name_or_start_url,
base::Time time);
+ // Returns true if any site under |origin| was launched from homescreen in the
+ // last ten days. This allows services outside app banners to utilise the
+ // content setting that ensures app banners are not shown for sites which ave
+ // already been added to homescreen.
+ static bool WasLaunchedRecently(content::WebContents* web_contents,
+ const GURL& origin_url,
+ base::Time now);
+
// Set the engagement weights assigned to direct and indirect navigations.
static void SetEngagementWeights(double direct_engagement,
double indirect_engagement);
« no previous file with comments | « no previous file | chrome/browser/banners/app_banner_settings_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698