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

Unified Diff: chrome/browser/metrics/metrics_log.cc

Issue 20587003: InstantExtended: record initial focus state for omnibox interactions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments. Created 7 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/metrics/metrics_log.cc
diff --git a/chrome/browser/metrics/metrics_log.cc b/chrome/browser/metrics/metrics_log.cc
index db64070cb808c251f2ae1003a4dfb6af27cbeb16..ade8e2e5acff47d0866e683f4947f1fc7994a0e1 100644
--- a/chrome/browser/metrics/metrics_log.cc
+++ b/chrome/browser/metrics/metrics_log.cc
@@ -154,11 +154,17 @@ OmniboxEventProto::PageClassification AsOmniboxEventPageClassification(
return OmniboxEventProto::HOMEPAGE;
case AutocompleteInput::OTHER:
return OmniboxEventProto::OTHER;
- case AutocompleteInput::INSTANT_NEW_TAB_PAGE:
- return OmniboxEventProto::INSTANT_NEW_TAB_PAGE;
+ case AutocompleteInput::OBSOLETE_INSTANT_NEW_TAB_PAGE:
+ return OmniboxEventProto::OBSOLETE_INSTANT_NEW_TAB_PAGE;
Ilya Sherman 2013/08/02 21:47:32 nit: NOTREACHED()? Maybe you could even remove th
Mark P 2013/08/02 21:53:24 You realize this suggestion is the exact opposite
Ilya Sherman 2013/08/02 22:01:49 How so? I'm not recommending adding a default cas
Mark P 2013/08/02 22:08:42 Oh, yes, I misread your suggestion. It sounds sma
Mark P 2013/08/06 17:22:14 Please take this suggestion from Ilya before you s
samarth 2013/08/06 17:30:45 Oops sorry. Thanks for catching that. Done. (I
Mark P 2013/08/06 17:34:14 You might as well remove the value from autocomple
samarth 2013/08/06 17:43:03 OK, done.
case AutocompleteInput::SEARCH_RESULT_PAGE_DOING_SEARCH_TERM_REPLACEMENT:
return OmniboxEventProto::
SEARCH_RESULT_PAGE_DOING_SEARCH_TERM_REPLACEMENT;
+ case AutocompleteInput::INSTANT_NEW_TAB_PAGE_WITH_OMNIBOX_AS_STARTING_FOCUS:
+ return OmniboxEventProto::
+ INSTANT_NEW_TAB_PAGE_WITH_OMNIBOX_AS_STARTING_FOCUS;
+ case AutocompleteInput::INSTANT_NEW_TAB_PAGE_WITH_FAKEBOX_AS_STARTING_FOCUS:
+ return OmniboxEventProto::
+ INSTANT_NEW_TAB_PAGE_WITH_FAKEBOX_AS_STARTING_FOCUS;
}
return OmniboxEventProto::INVALID_SPEC;
}

Powered by Google App Engine
This is Rietveld 408576698