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

Unified Diff: chrome/browser/extensions/activity_log/uma_policy.cc

Issue 270623005: Update ActivityLog detection to use previous values, hrefs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: chrome/browser/extensions/activity_log/uma_policy.cc
diff --git a/chrome/browser/extensions/activity_log/uma_policy.cc b/chrome/browser/extensions/activity_log/uma_policy.cc
index e94f781eac05e5f87fd467b3f35efe9a93b252cb..ed395a8659863faef047ef13ab06960f7c68fadf 100644
--- a/chrome/browser/extensions/activity_log/uma_policy.cc
+++ b/chrome/browser/extensions/activity_log/uma_policy.cc
@@ -40,6 +40,7 @@ const int kCreatedObject = 1 << UmaPolicy::CREATED_OBJECT;
const int kAdInjected = 1 << UmaPolicy::AD_INJECTED;
const int kAdRemoved = 1 << UmaPolicy::AD_REMOVED;
const int kAdReplaced = 1 << UmaPolicy::AD_REPLACED;
+const int kAdLikelyReplaced = 1 << UmaPolicy::AD_LIKELY_REPLACED;
} // namespace
@@ -155,6 +156,9 @@ int UmaPolicy::MatchActionToStatus(scoped_refptr<Action> action) {
case Action::INJECTION_REPLACED_AD:
ret_bit |= kAdReplaced;
break;
+ case Action::INJECTION_LIKELY_REPLACED_AD:
+ ret_bit |= kAdLikelyReplaced;
+ break;
case Action::NO_AD_INJECTION:
break;
case Action::NUM_INJECTION_TYPES:

Powered by Google App Engine
This is Rietveld 408576698