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 #ifndef COMPONENTS_SEARCH_SEARCH_H_ | 5 #ifndef COMPONENTS_SEARCH_SEARCH_H_ |
6 #define COMPONENTS_SEARCH_SEARCH_H_ | 6 #define COMPONENTS_SEARCH_SEARCH_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 uint64 GetUInt64ValueForFlagWithDefault(const std::string& flag, | 47 uint64 GetUInt64ValueForFlagWithDefault(const std::string& flag, |
48 uint64 default_value, | 48 uint64 default_value, |
49 const FieldTrialFlags& flags); | 49 const FieldTrialFlags& flags); |
50 | 50 |
51 // Given a FieldTrialFlags object, returns the bool value of the provided flag. | 51 // Given a FieldTrialFlags object, returns the bool value of the provided flag. |
52 // Exposed for testing only. | 52 // Exposed for testing only. |
53 bool GetBoolValueForFlagWithDefault(const std::string& flag, | 53 bool GetBoolValueForFlagWithDefault(const std::string& flag, |
54 bool default_value, | 54 bool default_value, |
55 const FieldTrialFlags& flags); | 55 const FieldTrialFlags& flags); |
56 | 56 |
| 57 // Returns true if 'hide_verbatim' flag is enabled in field trials |
| 58 // to hide the top match in the native suggestions dropdown if it is a verbatim |
| 59 // match. See comments on ShouldHideTopMatch in autocomplete_result.h. |
| 60 bool ShouldHideTopVerbatimMatch(); |
| 61 |
57 } // namespace chrome | 62 } // namespace chrome |
58 | 63 |
59 #endif // COMPONENTS_SEARCH_SEARCH_H_ | 64 #endif // COMPONENTS_SEARCH_SEARCH_H_ |
OLD | NEW |