Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: components/search/search.h

Issue 1154063003: removing ShouldHideTopMatch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review changes Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 uint64 GetUInt64ValueForFlagWithDefault(const std::string& flag, 48 uint64 GetUInt64ValueForFlagWithDefault(const std::string& flag,
49 uint64 default_value, 49 uint64 default_value,
50 const FieldTrialFlags& flags); 50 const FieldTrialFlags& flags);
51 51
52 // Given a FieldTrialFlags object, returns the bool value of the provided flag. 52 // Given a FieldTrialFlags object, returns the bool value of the provided flag.
53 // Exposed for testing only. 53 // Exposed for testing only.
54 bool GetBoolValueForFlagWithDefault(const std::string& flag, 54 bool GetBoolValueForFlagWithDefault(const std::string& flag,
55 bool default_value, 55 bool default_value,
56 const FieldTrialFlags& flags); 56 const FieldTrialFlags& flags);
57 57
58 // Returns true if 'hide_verbatim' flag is enabled in field trials
59 // to hide the top match in the native suggestions dropdown if it is a verbatim
60 // match. See comments on ShouldHideTopMatch in autocomplete_result.h.
61 bool ShouldHideTopVerbatimMatch();
62
63 } // namespace chrome 58 } // namespace chrome
64 59
65 #endif // COMPONENTS_SEARCH_SEARCH_H_ 60 #endif // COMPONENTS_SEARCH_SEARCH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698