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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 return OmniboxEventProto::BLANK; | 152 return OmniboxEventProto::BLANK; |
153 case AutocompleteInput::HOMEPAGE: | 153 case AutocompleteInput::HOMEPAGE: |
154 return OmniboxEventProto::HOMEPAGE; | 154 return OmniboxEventProto::HOMEPAGE; |
155 case AutocompleteInput::OTHER: | 155 case AutocompleteInput::OTHER: |
156 return OmniboxEventProto::OTHER; | 156 return OmniboxEventProto::OTHER; |
157 case AutocompleteInput::INSTANT_NEW_TAB_PAGE: | 157 case AutocompleteInput::INSTANT_NEW_TAB_PAGE: |
158 return OmniboxEventProto::INSTANT_NEW_TAB_PAGE; | 158 return OmniboxEventProto::INSTANT_NEW_TAB_PAGE; |
159 case AutocompleteInput::SEARCH_RESULT_PAGE_DOING_SEARCH_TERM_REPLACEMENT: | 159 case AutocompleteInput::SEARCH_RESULT_PAGE_DOING_SEARCH_TERM_REPLACEMENT: |
160 return OmniboxEventProto:: | 160 return OmniboxEventProto:: |
161 SEARCH_RESULT_PAGE_DOING_SEARCH_TERM_REPLACEMENT; | 161 SEARCH_RESULT_PAGE_DOING_SEARCH_TERM_REPLACEMENT; |
| 162 case AutocompleteInput::SEARCH_RESULT_PAGE_NO_SEARCH_TERM_REPLACEMENT: |
| 163 return OmniboxEventProto:: |
| 164 SEARCH_RESULT_PAGE_NO_SEARCH_TERM_REPLACEMENT; |
162 } | 165 } |
163 return OmniboxEventProto::INVALID_SPEC; | 166 return OmniboxEventProto::INVALID_SPEC; |
164 } | 167 } |
165 | 168 |
166 ProfilerEventProto::TrackedObject::ProcessType AsProtobufProcessType( | 169 ProfilerEventProto::TrackedObject::ProcessType AsProtobufProcessType( |
167 int process_type) { | 170 int process_type) { |
168 switch (process_type) { | 171 switch (process_type) { |
169 case content::PROCESS_TYPE_BROWSER: | 172 case content::PROCESS_TYPE_BROWSER: |
170 return ProfilerEventProto::TrackedObject::BROWSER; | 173 return ProfilerEventProto::TrackedObject::BROWSER; |
171 case content::PROCESS_TYPE_RENDERER: | 174 case content::PROCESS_TYPE_RENDERER: |
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 | 943 |
941 paired_device->set_vendor_prefix(vendor_prefix); | 944 paired_device->set_vendor_prefix(vendor_prefix); |
942 } | 945 } |
943 | 946 |
944 paired_device->set_vendor_id(device->GetVendorID()); | 947 paired_device->set_vendor_id(device->GetVendorID()); |
945 paired_device->set_product_id(device->GetProductID()); | 948 paired_device->set_product_id(device->GetProductID()); |
946 paired_device->set_device_id(device->GetDeviceID()); | 949 paired_device->set_device_id(device->GetDeviceID()); |
947 } | 950 } |
948 #endif // defined(OS_CHROMEOS) | 951 #endif // defined(OS_CHROMEOS) |
949 } | 952 } |
OLD | NEW |