| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 case AutocompleteMatchType::SEARCH_SUGGEST_INFINITE: | 131 case AutocompleteMatchType::SEARCH_SUGGEST_INFINITE: |
| 132 return OmniboxEventProto::Suggestion::SEARCH_SUGGEST_INFINITE; | 132 return OmniboxEventProto::Suggestion::SEARCH_SUGGEST_INFINITE; |
| 133 case AutocompleteMatchType::SEARCH_SUGGEST_PERSONALIZED: | 133 case AutocompleteMatchType::SEARCH_SUGGEST_PERSONALIZED: |
| 134 return OmniboxEventProto::Suggestion::SEARCH_SUGGEST_PERSONALIZED; | 134 return OmniboxEventProto::Suggestion::SEARCH_SUGGEST_PERSONALIZED; |
| 135 case AutocompleteMatchType::SEARCH_SUGGEST_PROFILE: | 135 case AutocompleteMatchType::SEARCH_SUGGEST_PROFILE: |
| 136 return OmniboxEventProto::Suggestion::SEARCH_SUGGEST_PROFILE; | 136 return OmniboxEventProto::Suggestion::SEARCH_SUGGEST_PROFILE; |
| 137 case AutocompleteMatchType::SEARCH_OTHER_ENGINE: | 137 case AutocompleteMatchType::SEARCH_OTHER_ENGINE: |
| 138 return OmniboxEventProto::Suggestion::SEARCH_OTHER_ENGINE; | 138 return OmniboxEventProto::Suggestion::SEARCH_OTHER_ENGINE; |
| 139 case AutocompleteMatchType::EXTENSION_APP: | 139 case AutocompleteMatchType::EXTENSION_APP: |
| 140 return OmniboxEventProto::Suggestion::EXTENSION_APP; | 140 return OmniboxEventProto::Suggestion::EXTENSION_APP; |
| 141 case AutocompleteMatchType::CONTACT: | |
| 142 return OmniboxEventProto::Suggestion::CONTACT; | |
| 143 case AutocompleteMatchType::BOOKMARK_TITLE: | 141 case AutocompleteMatchType::BOOKMARK_TITLE: |
| 144 return OmniboxEventProto::Suggestion::BOOKMARK_TITLE; | 142 return OmniboxEventProto::Suggestion::BOOKMARK_TITLE; |
| 145 default: | 143 default: |
| 146 NOTREACHED(); | 144 NOTREACHED(); |
| 147 return OmniboxEventProto::Suggestion::UNKNOWN_RESULT_TYPE; | 145 return OmniboxEventProto::Suggestion::UNKNOWN_RESULT_TYPE; |
| 148 } | 146 } |
| 149 } | 147 } |
| 150 | 148 |
| 151 OmniboxEventProto::PageClassification AsOmniboxEventPageClassification( | 149 OmniboxEventProto::PageClassification AsOmniboxEventPageClassification( |
| 152 AutocompleteInput::PageClassification page_classification) { | 150 AutocompleteInput::PageClassification page_classification) { |
| (...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 887 ProductDataToProto(google_update_metrics.google_update_data, | 885 ProductDataToProto(google_update_metrics.google_update_data, |
| 888 google_update->mutable_google_update_status()); | 886 google_update->mutable_google_update_status()); |
| 889 } | 887 } |
| 890 | 888 |
| 891 if (!google_update_metrics.product_data.version.empty()) { | 889 if (!google_update_metrics.product_data.version.empty()) { |
| 892 ProductDataToProto(google_update_metrics.product_data, | 890 ProductDataToProto(google_update_metrics.product_data, |
| 893 google_update->mutable_client_status()); | 891 google_update->mutable_client_status()); |
| 894 } | 892 } |
| 895 #endif // defined(GOOGLE_CHROME_BUILD) && defined(OS_WIN) | 893 #endif // defined(GOOGLE_CHROME_BUILD) && defined(OS_WIN) |
| 896 } | 894 } |
| OLD | NEW |