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

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

Issue 1221523003: Add a SiteEngagementEvictionPolicy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get_total_engagement_points
Patch Set: fix test Created 5 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
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 f5494de945bdf42c309ecafc646cae6e8bbf052e..7563a1985f7797a490bd4a49012472d906c89ad4 100644
--- a/chrome/browser/engagement/site_engagement_service.h
+++ b/chrome/browser/engagement/site_engagement_service.h
@@ -7,7 +7,6 @@
#include "base/gtest_prod_util.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/time/default_clock.h"
#include "base/time/time.h"
#include "components/keyed_service/core/keyed_service.h"
@@ -109,10 +108,10 @@ class SiteEngagementService : public KeyedService {
// Returns a non-negative integer representing the engagement score of the
// origin for this URL.
- int GetScore(const GURL& url);
+ virtual int GetScore(const GURL& url);
// Returns the sum of engagement points awarded to all sites.
- int GetTotalEngagementPoints();
+ virtual int GetTotalEngagementPoints();
private:
Profile* profile_;

Powered by Google App Engine
This is Rietveld 408576698