OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/omnibox/browser/search_suggestion_parser.h" | 5 #include "components/omnibox/browser/search_suggestion_parser.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 | 10 |
9 #include "base/i18n/icu_string_conversions.h" | 11 #include "base/i18n/icu_string_conversions.h" |
10 #include "base/json/json_string_value_serializer.h" | 12 #include "base/json/json_string_value_serializer.h" |
11 #include "base/json/json_writer.h" | 13 #include "base/json/json_writer.h" |
12 #include "base/logging.h" | 14 #include "base/logging.h" |
13 #include "base/metrics/histogram_macros.h" | 15 #include "base/metrics/histogram_macros.h" |
14 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
15 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
16 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 base::CollapseWhitespace(suggestion, false), match_type, | 550 base::CollapseWhitespace(suggestion, false), match_type, |
549 base::CollapseWhitespace(match_contents, false), | 551 base::CollapseWhitespace(match_contents, false), |
550 match_contents_prefix, annotation, answer_contents, answer_type_str, | 552 match_contents_prefix, annotation, answer_contents, answer_type_str, |
551 answer.Pass(), suggest_query_params, deletion_url, is_keyword_result, | 553 answer.Pass(), suggest_query_params, deletion_url, is_keyword_result, |
552 relevance, relevances != NULL, should_prefetch, trimmed_input)); | 554 relevance, relevances != NULL, should_prefetch, trimmed_input)); |
553 } | 555 } |
554 } | 556 } |
555 results->relevances_from_server = relevances != NULL; | 557 results->relevances_from_server = relevances != NULL; |
556 return true; | 558 return true; |
557 } | 559 } |
OLD | NEW |