OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/metrics/metrics_log.h" | 5 #include "chrome/browser/metrics/metrics_log.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 case AutocompleteMatchType::SEARCH_SUGGEST_INFINITE: | 132 case AutocompleteMatchType::SEARCH_SUGGEST_INFINITE: |
133 return OmniboxEventProto::Suggestion::SEARCH_SUGGEST_INFINITE; | 133 return OmniboxEventProto::Suggestion::SEARCH_SUGGEST_INFINITE; |
134 case AutocompleteMatchType::SEARCH_SUGGEST_PERSONALIZED: | 134 case AutocompleteMatchType::SEARCH_SUGGEST_PERSONALIZED: |
135 return OmniboxEventProto::Suggestion::SEARCH_SUGGEST_PERSONALIZED; | 135 return OmniboxEventProto::Suggestion::SEARCH_SUGGEST_PERSONALIZED; |
136 case AutocompleteMatchType::SEARCH_SUGGEST_PROFILE: | 136 case AutocompleteMatchType::SEARCH_SUGGEST_PROFILE: |
137 return OmniboxEventProto::Suggestion::SEARCH_SUGGEST_PROFILE; | 137 return OmniboxEventProto::Suggestion::SEARCH_SUGGEST_PROFILE; |
138 case AutocompleteMatchType::SEARCH_OTHER_ENGINE: | 138 case AutocompleteMatchType::SEARCH_OTHER_ENGINE: |
139 return OmniboxEventProto::Suggestion::SEARCH_OTHER_ENGINE; | 139 return OmniboxEventProto::Suggestion::SEARCH_OTHER_ENGINE; |
140 case AutocompleteMatchType::EXTENSION_APP: | 140 case AutocompleteMatchType::EXTENSION_APP: |
141 return OmniboxEventProto::Suggestion::EXTENSION_APP; | 141 return OmniboxEventProto::Suggestion::EXTENSION_APP; |
142 case AutocompleteMatchType::CONTACT: | |
143 return OmniboxEventProto::Suggestion::CONTACT; | |
144 case AutocompleteMatchType::BOOKMARK_TITLE: | 142 case AutocompleteMatchType::BOOKMARK_TITLE: |
145 return OmniboxEventProto::Suggestion::BOOKMARK_TITLE; | 143 return OmniboxEventProto::Suggestion::BOOKMARK_TITLE; |
146 default: | 144 default: |
147 NOTREACHED(); | 145 NOTREACHED(); |
148 return OmniboxEventProto::Suggestion::UNKNOWN_RESULT_TYPE; | 146 return OmniboxEventProto::Suggestion::UNKNOWN_RESULT_TYPE; |
149 } | 147 } |
150 } | 148 } |
151 | 149 |
152 OmniboxEventProto::PageClassification AsOmniboxEventPageClassification( | 150 OmniboxEventProto::PageClassification AsOmniboxEventPageClassification( |
153 AutocompleteInput::PageClassification page_classification) { | 151 AutocompleteInput::PageClassification page_classification) { |
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
894 ProductDataToProto(google_update_metrics.google_update_data, | 892 ProductDataToProto(google_update_metrics.google_update_data, |
895 google_update->mutable_google_update_status()); | 893 google_update->mutable_google_update_status()); |
896 } | 894 } |
897 | 895 |
898 if (!google_update_metrics.product_data.version.empty()) { | 896 if (!google_update_metrics.product_data.version.empty()) { |
899 ProductDataToProto(google_update_metrics.product_data, | 897 ProductDataToProto(google_update_metrics.product_data, |
900 google_update->mutable_client_status()); | 898 google_update->mutable_client_status()); |
901 } | 899 } |
902 #endif // defined(GOOGLE_CHROME_BUILD) && defined(OS_WIN) | 900 #endif // defined(GOOGLE_CHROME_BUILD) && defined(OS_WIN) |
903 } | 901 } |
OLD | NEW |