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

Side by Side Diff: chrome/browser/omnibox/omnibox_field_trial.h

Issue 182313014: Omnibox: Launch URL Demotion in the Fakebox by Default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/omnibox/omnibox_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_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_ 5 #ifndef CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_
6 #define CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_ 6 #define CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 static bool SearchHistoryDisable( 209 static bool SearchHistoryDisable(
210 AutocompleteInput::PageClassification current_page_classification); 210 AutocompleteInput::PageClassification current_page_classification);
211 211
212 // --------------------------------------------------------- 212 // ---------------------------------------------------------
213 // For the DemoteByType experiment that's part of the bundled omnibox field 213 // For the DemoteByType experiment that's part of the bundled omnibox field
214 // trial. 214 // trial.
215 215
216 // If the user is in an experiment group that, in the provided 216 // If the user is in an experiment group that, in the provided
217 // |current_page_classification| context, demotes the relevance scores 217 // |current_page_classification| context, demotes the relevance scores
218 // of certain types of matches, populates the |demotions_by_type| map 218 // of certain types of matches, populates the |demotions_by_type| map
219 // appropriately. Otherwise, clears |demotions_by_type|. 219 // appropriately. Otherwise, sets |demotions_by_type| to its default
220 // value based on the context.
220 static void GetDemotionsByType( 221 static void GetDemotionsByType(
221 AutocompleteInput::PageClassification current_page_classification, 222 AutocompleteInput::PageClassification current_page_classification,
222 DemotionMultipliers* demotions_by_type); 223 DemotionMultipliers* demotions_by_type);
223 224
224 // Get the set of types that should not be demoted if they are the top 225 // Get the set of types that should not be demoted if they are the top
225 // match. 226 // match.
226 static UndemotableTopMatchTypes GetUndemotableTopTypes( 227 static UndemotableTopMatchTypes GetUndemotableTopTypes(
227 AutocompleteInput::PageClassification current_page_classification); 228 AutocompleteInput::PageClassification current_page_classification);
228 229
229 // --------------------------------------------------------- 230 // ---------------------------------------------------------
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 // prioritize different wildcard contexts, see the implementation. How to 332 // prioritize different wildcard contexts, see the implementation. How to
332 // interpret the value is left to the caller; this is rule-dependent. 333 // interpret the value is left to the caller; this is rule-dependent.
333 static std::string GetValueForRuleInContext( 334 static std::string GetValueForRuleInContext(
334 const std::string& rule, 335 const std::string& rule,
335 AutocompleteInput::PageClassification page_classification); 336 AutocompleteInput::PageClassification page_classification);
336 337
337 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial); 338 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial);
338 }; 339 };
339 340
340 #endif // CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_ 341 #endif // CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/omnibox/omnibox_field_trial.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698