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

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

Issue 10532149: Omnibox: Create HistoryQuickProvider new scoring field trial. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 // Gets the group name (as a number) to use when sending a suggest query 45 // Gets the group name (as a number) to use when sending a suggest query
46 // to Google. Should only be called if InSuggestFieldTrial(). 46 // to Google. Should only be called if InSuggestFieldTrial().
47 static int GetSuggestGroupNameAsNumber(); 47 static int GetSuggestGroupNameAsNumber();
48 48
49 // Gets the maximum number of groups in the suggest field trial. 49 // Gets the maximum number of groups in the suggest field trial.
50 // (Useful for telling UMA_HISTOGRAM_ENUMERATION the number of buckets 50 // (Useful for telling UMA_HISTOGRAM_ENUMERATION the number of buckets
51 // to create.) 51 // to create.)
52 static int GetSuggestNumberOfGroups(); 52 static int GetSuggestNumberOfGroups();
53 53
54 // ---------------------------------------------------------
55 // For the History Quick Provider new scoring field trial.
56
57 // Returns whether the user is in any field trial group for this
58 // field trial. False indicates that the field trial wasn't
59 // successfully created for some reason.
60 static bool InHQPNewScoringFieldTrial();
Ilya Sherman 2012/06/15 01:24:58 nit: Is there any more descriptive name that we ca
Mark P 2012/06/15 12:26:12 I thought about this. The closest I got is Multip
61
62 // Returns whether the user should get the experiment setup or
Ilya Sherman 2012/06/15 01:24:58 nit: "experiment" -> "experimental"?
Mark P 2012/06/15 12:26:12 Done.
63 // the default setup for this field trial. The experiment
64 // group uses "new scoring" (a complex multiplicate calculation that,
Ilya Sherman 2012/06/15 01:24:58 nit: Is "multiplicate" a typo or a fancy word I do
Mark P 2012/06/15 12:26:12 Typo. Fixed.
65 // among other differences from "old scoring", uses word break
66 // information).
67 static bool InHQPNewScoringFieldTrialExperimentGroup();
68
54 private: 69 private:
55 DISALLOW_IMPLICIT_CONSTRUCTORS(AutocompleteFieldTrial); 70 DISALLOW_IMPLICIT_CONSTRUCTORS(AutocompleteFieldTrial);
56 }; 71 };
57 72
58 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_FIELD_TRIAL_H_ 73 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_FIELD_TRIAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698