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

Unified Diff: chrome/browser/push_messaging/background_budget_service.cc

Issue 1975723002: Reduce the site engagement service public interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Push messaging now uses engagement Created 4 years, 7 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 | « chrome/browser/engagement/site_engagement_service_unittest.cc ('k') | chrome/browser/ui/tab_helpers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/push_messaging/background_budget_service.cc
diff --git a/chrome/browser/push_messaging/background_budget_service.cc b/chrome/browser/push_messaging/background_budget_service.cc
index 5963bc288873b2ae56b54911f30177f9bb108c42..f6f4931dd397f48afb41a16adc8f36f508e897ae 100644
--- a/chrome/browser/push_messaging/background_budget_service.cc
+++ b/chrome/browser/push_messaging/background_budget_service.cc
@@ -142,7 +142,7 @@ double BackgroundBudgetService::GetBudget(const GURL& origin) {
void BackgroundBudgetService::StoreBudget(const GURL& origin, double budget) {
DCHECK_EQ(origin, origin.GetOrigin());
DCHECK_GE(budget, 0.0);
- DCHECK_LE(budget, SiteEngagementScore::kMaxPoints);
+ DCHECK_LE(budget, SiteEngagementService::GetMaxPoints());
// Get the current SES score to write into the prefs with the new budget.
SiteEngagementService* service = SiteEngagementService::Get(profile_);
« no previous file with comments | « chrome/browser/engagement/site_engagement_service_unittest.cc ('k') | chrome/browser/ui/tab_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698