Chromium Code Reviews| 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 202dfce07dea75f1df60c30ab690e9e445b7422c..eb25493d79fc74f79896b630f3bd668070897aeb 100644 |
| --- a/components/omnibox/browser/omnibox_metrics_provider.cc |
| +++ b/components/omnibox/browser/omnibox_metrics_provider.cc |
| @@ -154,11 +154,13 @@ void OmniboxMetricsProvider::RecordOmniboxOpenedURL(const OmniboxLog& log) { |
| for (AutocompleteResult::const_iterator i(log.result.begin()); |
| i != log.result.end(); ++i) { |
| OmniboxEventProto::Suggestion* suggestion = omnibox_event->add_suggestion(); |
| - suggestion->set_provider(i->provider->AsOmniboxEventProviderType()); |
| + const auto provider_type = i->provider->AsOmniboxEventProviderType(); |
| + suggestion->set_provider(provider_type); |
| suggestion->set_result_type(AsOmniboxEventResultType(i->type)); |
| suggestion->set_relevance(i->relevance); |
| if (i->typed_count != -1) |
| suggestion->set_typed_count(i->typed_count); |
| + suggestion->set_specific_type_identifier(i->specific_type_identifier); |
|
Mark P
2017/03/21 19:54:25
Please only set the specific type field in the pro
gcomanici
2017/03/22 02:39:03
Done.
|
| } |
| for (ProvidersInfo::const_iterator i(log.providers_info.begin()); |
| i != log.providers_info.end(); ++i) { |