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

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: initialized -> initialized_ 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
« 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 #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();
61
62 // Returns whether the user should get the experimental setup or
63 // the default setup for this field trial. The experiment
64 // group uses "new scoring" (a complex multiplicative calculation
65 // that, among other differences from "old scoring", uses word
66 // break 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
« 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