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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_field_trial.h

Issue 11421139: Omnibox: Create Field Trial for HQP to Ignore Mid-Word Matches (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Peter's comments. Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_field_trial.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_FIELD_TRIAL_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_FIELD_TRIAL_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_FIELD_TRIAL_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_FIELD_TRIAL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 static bool InHQPReplaceHUPScoringFieldTrial(); 76 static bool InHQPReplaceHUPScoringFieldTrial();
77 77
78 // Returns whether the user should get the experimental setup or the 78 // Returns whether the user should get the experimental setup or the
79 // default setup for this field trial. The experiment group 79 // default setup for this field trial. The experiment group
80 // simultaneously disables HistoryURL provider from searching the 80 // simultaneously disables HistoryURL provider from searching the
81 // URL database and directs HistoryQuick provider to calculate both 81 // URL database and directs HistoryQuick provider to calculate both
82 // HUP-style and HQP-style scores for matches, then return whichever 82 // HUP-style and HQP-style scores for matches, then return whichever
83 // is larger. 83 // is larger.
84 static bool InHQPReplaceHUPScoringFieldTrialExperimentGroup(); 84 static bool InHQPReplaceHUPScoringFieldTrialExperimentGroup();
85 85
86 // ---------------------------------------------------------
87 // For the HistoryQuick provider only count matches at word boundaries
88 // field trial.
89
90 // Returns whether the user is in any group for this field trial.
91 // (Should always be true unless initialization went wrong.)
92 static bool InHQPOnlyCountMatchesAtWordBoundariesFieldTrial();
93
94 // Returns whether we should ignore all mid-word matches in
95 // HistoryQuick provider.
96 static bool InHQPOnlyCountMatchesAtWordBoundariesFieldTrialExperimentGroup();
97
86 private: 98 private:
87 DISALLOW_IMPLICIT_CONSTRUCTORS(AutocompleteFieldTrial); 99 DISALLOW_IMPLICIT_CONSTRUCTORS(AutocompleteFieldTrial);
88 }; 100 };
89 101
90 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_FIELD_TRIAL_H_ 102 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_FIELD_TRIAL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_field_trial.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698