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

Unified Diff: chrome/browser/autocomplete/autocomplete_field_trial.h

Issue 12220004: Introduce dynamic ablation of AutocompleteProviders using AC dynamic trials. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autocomplete/autocomplete_field_trial.h
diff --git a/chrome/browser/autocomplete/autocomplete_field_trial.h b/chrome/browser/autocomplete/autocomplete_field_trial.h
index dd9bfa3375ecc73ddbc21c7447cd1e00a62f6590..7dddece381ee769966e656fa9d2cac9a9c1c4638 100644
--- a/chrome/browser/autocomplete/autocomplete_field_trial.h
+++ b/chrome/browser/autocomplete/autocomplete_field_trial.h
@@ -24,6 +24,14 @@ class AutocompleteFieldTrial {
// This method, unlike ActivateStaticTrials(), may be called multiple times.
static void ActivateDynamicTrials();
+ // Returns a bitmap containing AutocompleteProvider::Type values
+ // that should be disabled in AutocompleteController.
+ // This method simply goes over all autocomplete dynamic field trial groups
+ // and looks for "ProvidersDisabled_NNN" substring in the group name
+ // (NNN is an integer corresponding to a bitmap mask). All extracted bitmaps
+ // are OR-ed together and returned as the final result.
+ static int GetDisabledProviderTypes();
+
// ---------------------------------------------------------
// For the inline History Quick Provider field trial.

Powered by Google App Engine
This is Rietveld 408576698