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 <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 case AutocompleteMatch::SEARCH_HISTORY: | 116 case AutocompleteMatch::SEARCH_HISTORY: |
117 return OmniboxEventProto::Suggestion::SEARCH_HISTORY; | 117 return OmniboxEventProto::Suggestion::SEARCH_HISTORY; |
118 case AutocompleteMatch::SEARCH_SUGGEST: | 118 case AutocompleteMatch::SEARCH_SUGGEST: |
119 return OmniboxEventProto::Suggestion::SEARCH_SUGGEST; | 119 return OmniboxEventProto::Suggestion::SEARCH_SUGGEST; |
120 case AutocompleteMatch::SEARCH_OTHER_ENGINE: | 120 case AutocompleteMatch::SEARCH_OTHER_ENGINE: |
121 return OmniboxEventProto::Suggestion::SEARCH_OTHER_ENGINE; | 121 return OmniboxEventProto::Suggestion::SEARCH_OTHER_ENGINE; |
122 case AutocompleteMatch::EXTENSION_APP: | 122 case AutocompleteMatch::EXTENSION_APP: |
123 return OmniboxEventProto::Suggestion::EXTENSION_APP; | 123 return OmniboxEventProto::Suggestion::EXTENSION_APP; |
124 case AutocompleteMatch::CONTACT: | 124 case AutocompleteMatch::CONTACT: |
125 return OmniboxEventProto::Suggestion::CONTACT; | 125 return OmniboxEventProto::Suggestion::CONTACT; |
| 126 case AutocompleteMatch::BOOKMARK_TITLE: |
| 127 return OmniboxEventProto::Suggestion::BOOKMARK_TITLE; |
126 default: | 128 default: |
127 NOTREACHED(); | 129 NOTREACHED(); |
128 return OmniboxEventProto::Suggestion::UNKNOWN_RESULT_TYPE; | 130 return OmniboxEventProto::Suggestion::UNKNOWN_RESULT_TYPE; |
129 } | 131 } |
130 } | 132 } |
131 | 133 |
132 ProfilerEventProto::TrackedObject::ProcessType AsProtobufProcessType( | 134 ProfilerEventProto::TrackedObject::ProcessType AsProtobufProcessType( |
133 content::ProcessType process_type) { | 135 content::ProcessType process_type) { |
134 switch (process_type) { | 136 switch (process_type) { |
135 case content::PROCESS_TYPE_BROWSER: | 137 case content::PROCESS_TYPE_BROWSER: |
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1009 ProductDataToProto(google_update_metrics.google_update_data, | 1011 ProductDataToProto(google_update_metrics.google_update_data, |
1010 google_update->mutable_google_update_status()); | 1012 google_update->mutable_google_update_status()); |
1011 } | 1013 } |
1012 | 1014 |
1013 if (!google_update_metrics.product_data.version.empty()) { | 1015 if (!google_update_metrics.product_data.version.empty()) { |
1014 ProductDataToProto(google_update_metrics.product_data, | 1016 ProductDataToProto(google_update_metrics.product_data, |
1015 google_update->mutable_client_status()); | 1017 google_update->mutable_client_status()); |
1016 } | 1018 } |
1017 #endif // defined(GOOGLE_CHROME_BUILD) && defined(OS_WIN) | 1019 #endif // defined(GOOGLE_CHROME_BUILD) && defined(OS_WIN) |
1018 } | 1020 } |
OLD | NEW |