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

Unified Diff: components/omnibox/browser/omnibox_metrics_provider.cc

Issue 2203993002: Add a Physical Web omnibox autocomplete provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unit test fixes Created 4 years, 4 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/omnibox/browser/omnibox_metrics_provider.cc
diff --git a/components/omnibox/browser/omnibox_metrics_provider.cc b/components/omnibox/browser/omnibox_metrics_provider.cc
index 619ea4d69898bd4a9c8edadf3b98f11fd35ea2d3..202dfce07dea75f1df60c30ab690e9e445b7422c 100644
--- a/components/omnibox/browser/omnibox_metrics_provider.cc
+++ b/components/omnibox/browser/omnibox_metrics_provider.cc
@@ -64,6 +64,10 @@ OmniboxEventProto::Suggestion::ResultType AsOmniboxEventResultType(
return OmniboxEventProto::Suggestion::NAVSUGGEST_PERSONALIZED;
case AutocompleteMatchType::CLIPBOARD:
return OmniboxEventProto::Suggestion::CLIPBOARD;
+ case AutocompleteMatchType::PHYSICAL_WEB:
+ return OmniboxEventProto::Suggestion::PHYSICAL_WEB;
+ case AutocompleteMatchType::PHYSICAL_WEB_OVERFLOW:
+ return OmniboxEventProto::Suggestion::PHYSICAL_WEB_OVERFLOW;
case AutocompleteMatchType::VOICE_SUGGEST:
// VOICE_SUGGEST matches are only used in Java and are not logged,
// so we should never reach this case.

Powered by Google App Engine
This is Rietveld 408576698