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

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

Issue 2285553002: [HBD] Gate the advertising of Flash on Site Engagement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tidying Created 4 years, 3 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_score.h
diff --git a/chrome/browser/engagement/site_engagement_score.h b/chrome/browser/engagement/site_engagement_score.h
index 70619da395e30033b954003eb31e8f43ea47960e..2e0e53b62105785d14da90f7a627ee055b258517 100644
--- a/chrome/browser/engagement/site_engagement_score.h
+++ b/chrome/browser/engagement/site_engagement_score.h
@@ -18,7 +18,7 @@ namespace base {
class Clock;
}
-class Profile;
+class HostContentSettingsMap;
class SiteEngagementScore {
public:
@@ -114,7 +114,7 @@ class SiteEngagementScore {
// SiteEngagementScore.
SiteEngagementScore(base::Clock* clock,
const GURL& origin,
- Profile* profile);
+ HostContentSettingsMap* settings);
SiteEngagementScore(SiteEngagementScore&& other);
~SiteEngagementScore();
@@ -176,6 +176,7 @@ class SiteEngagementScore {
// This version of the constructor is used in unit tests.
SiteEngagementScore(base::Clock* clock,
+ const GURL& origin,
calamity 2016/09/13 04:14:37 Is this used anywhere?
dominickn 2016/09/13 04:42:14 The GURL argument? I pulled it down so that there
calamity 2016/09/13 06:33:34 Seems weird to have a param that's never used but
dominickn 2016/09/14 01:06:55 Acknowledged.
std::unique_ptr<base::DictionaryValue> score_dict);
// Determine the score, accounting for any decay.
@@ -218,8 +219,8 @@ class SiteEngagementScore {
// The origin this score represents.
GURL origin_;
- // The profile to write this score to when Commit() is called.
- Profile* profile_;
+ // The settings to write this score to when Commit() is called.
+ HostContentSettingsMap* settings_map_;
DISALLOW_COPY_AND_ASSIGN(SiteEngagementScore);
};
« no previous file with comments | « no previous file | chrome/browser/engagement/site_engagement_score.cc » ('j') | chrome/browser/engagement/site_engagement_score.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698