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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchRankerLogger.java

Issue 2863893002: [TTS] Remove two unused metrics. (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.contextualsearch; 5 package org.chromium.chrome.browser.contextualsearch;
6 6
7 /** 7 /**
8 * An interface for logging to UMA via Ranker. 8 * An interface for logging to UMA via Ranker.
9 */ 9 */
10 public interface ContextualSearchRankerLogger { 10 public interface ContextualSearchRankerLogger {
11 enum Feature { 11 enum Feature {
12 UNKNOWN, 12 UNKNOWN,
13 // Outcome labels: 13 // Outcome labels:
14 OUTCOME_WAS_PANEL_OPENED, 14 OUTCOME_WAS_PANEL_OPENED,
15 OUTCOME_WAS_QUICK_ACTION_CLICKED, 15 OUTCOME_WAS_QUICK_ACTION_CLICKED,
16 OUTCOME_WAS_QUICK_ANSWER_SEEN, 16 OUTCOME_WAS_QUICK_ANSWER_SEEN,
17 // Features: 17 // Features:
18 DURATION_AFTER_SCROLL_MS, 18 DURATION_AFTER_SCROLL_MS,
19 DURATION_BEFORE_SCROLL_MS, 19 DURATION_BEFORE_SCROLL_MS,
20 SCREEN_TOP_DPS, 20 SCREEN_TOP_DPS,
21 WAS_SCREEN_BOTTOM, 21 WAS_SCREEN_BOTTOM,
22 PREVIOUS_WEEK_IMPRESSIONS_COUNT, 22 PREVIOUS_WEEK_IMPRESSIONS_COUNT,
23 PREVIOUS_WEEK_CTR_PERCENT, 23 PREVIOUS_WEEK_CTR_PERCENT,
24 PREVIOUS_28DAY_IMPRESSIONS_COUNT, 24 PREVIOUS_28DAY_IMPRESSIONS_COUNT,
25 PREVIOUS_28DAY_CTR_PERCENT, 25 PREVIOUS_28DAY_CTR_PERCENT,
26 SELECTION_LENGTH, 26 SELECTION_LENGTH,
27 SELECTION_FIRST_CHAR, 27 SELECTION_FIRST_CHAR
28 SELECTION_WAS_ALL_CAPS
29 } 28 }
30 29
31 /** 30 /**
32 * Logs a particular key/value pair. 31 * Logs a particular key/value pair.
33 * @param feature The feature to log. 32 * @param feature The feature to log.
34 * @param value The value to log, which is associated with the given key. 33 * @param value The value to log, which is associated with the given key.
35 */ 34 */
36 void log(Feature feature, Object value); 35 void log(Feature feature, Object value);
37 36
38 /** 37 /**
39 * Logs the final outcome value that indicates the ML label. 38 * Logs the final outcome value that indicates the ML label.
40 * @param value The outcome label value. 39 * @param value The outcome label value.
41 */ 40 */
42 void logOutcome(Object value); 41 void logOutcome(Object value);
43 42
44 /** 43 /**
45 * Writes all the accumulated log entries and resets the logger so that futu re log calls 44 * Writes all the accumulated log entries and resets the logger so that futu re log calls
46 * accumulate into a new record. 45 * accumulate into a new record.
47 */ 46 */
48 void writeLogAndReset(); 47 void writeLogAndReset();
49 } 48 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698