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

Unified Diff: components/ntp_snippets/content_suggestions_metrics.h

Issue 2609413005: [NTP::SectionOrder] Add category position metric for opened suggestions. (Closed)
Patch Set: propagate category rank from ui. Created 3 years, 11 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: components/ntp_snippets/content_suggestions_metrics.h
diff --git a/components/ntp_snippets/content_suggestions_metrics.h b/components/ntp_snippets/content_suggestions_metrics.h
index d03fb42a48bb91ce10549759459ea0a50983850a..612153e927ea657d64b9df21d6a5a1d6503f735b 100644
--- a/components/ntp_snippets/content_suggestions_metrics.h
+++ b/components/ntp_snippets/content_suggestions_metrics.h
@@ -21,27 +21,28 @@ void OnPageShown(
// Should only be called once per NTP for each suggestion.
void OnSuggestionShown(int global_position,
Category category,
- int category_position,
+ int position_in_category,
base::Time publish_date,
base::Time last_background_fetch_time,
float score);
Marc Treib 2017/01/16 10:45:42 Hm. I'm wondering whether we should pack most of t
tschumann 2017/01/16 11:02:22 Seems like a good idea. However, I'd be in favor o
Marc Treib 2017/01/16 11:18:54 Oh, absolutely! I was thinking global_position, ca
vitaliii 2017/01/18 09:19:20 I agree, I added a TODO and crbug.com/682160.
void OnSuggestionOpened(int global_position,
Category category,
- int category_position,
+ int category_rank,
+ int position_in_category,
base::Time publish_date,
float score,
WindowOpenDisposition disposition);
void OnSuggestionMenuOpened(int global_position,
Category category,
- int category_position,
+ int position_in_category,
base::Time publish_date,
float score);
void OnSuggestionDismissed(int global_position,
Category category,
- int category_position,
+ int position_in_category,
bool visited);
void OnSuggestionTargetVisited(Category category, base::TimeDelta visit_time);

Powered by Google App Engine
This is Rietveld 408576698