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

Unified Diff: chrome/browser/engagement/site_engagement_service.h

Issue 2735333002: Rename SiteEngagementService::ResetScoreForURL. (Closed)
Patch Set: Created 3 years, 9 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
Index: chrome/browser/engagement/site_engagement_service.h
diff --git a/chrome/browser/engagement/site_engagement_service.h b/chrome/browser/engagement/site_engagement_service.h
index 391cf306d2b890c3f90df069f84935cb2e62b8a7..c97eb4abfa7bfa1aaf3887eb7886d66ced363286 100644
--- a/chrome/browser/engagement/site_engagement_service.h
+++ b/chrome/browser/engagement/site_engagement_service.h
@@ -120,8 +120,10 @@ class SiteEngagementService : public KeyedService,
bool IsEngagementAtLeast(const GURL& url,
blink::mojom::EngagementLevel level) const;
- // Resets the engagement score |url| to |score|, clearing daily limits.
- void ResetScoreForURL(const GURL& url, double score);
+ // Resets the base engagement for |url| to |score|, clearing daily limits. Any
+ // bonus engagement that |url| has acquired is not affected by this method, so
+ // the result of GetScore(|url|) may not be the same as |score|.
+ void ResetBaseScoreForURL(const GURL& url, double score);
// Update the last time |url| was opened from an installed shortcut to be
// clock_->Now().
« no previous file with comments | « chrome/browser/engagement/important_sites_util_unittest.cc ('k') | chrome/browser/engagement/site_engagement_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698