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

Unified Diff: chrome/browser/ui/webui/engagement/site_engagement_ui.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/ui/tab_helpers.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/engagement/site_engagement_ui.cc
diff --git a/chrome/browser/ui/webui/engagement/site_engagement_ui.cc b/chrome/browser/ui/webui/engagement/site_engagement_ui.cc
index 1413222c9f7526c43cf7f6bab29557d65927e055..1a24feda036871181a4e42e14d59a7c28269ea12 100644
--- a/chrome/browser/ui/webui/engagement/site_engagement_ui.cc
+++ b/chrome/browser/ui/webui/engagement/site_engagement_ui.cc
@@ -57,7 +57,7 @@ class SiteEngagementUIHandlerImpl : public mojom::SiteEngagementUIHandler {
double score) override {
GURL origin_gurl(origin.get());
if (!origin_gurl.is_valid() || score < 0 ||
- score > SiteEngagementScore::kMaxPoints || std::isnan(score)) {
+ score > SiteEngagementService::GetMaxPoints() || std::isnan(score)) {
return;
}
« no previous file with comments | « chrome/browser/ui/tab_helpers.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698