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

Unified Diff: chrome/browser/autocomplete/autocomplete_controller.cc

Issue 12220004: Introduce dynamic ablation of AutocompleteProviders using AC dynamic trials. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Remove unused variable. 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
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_field_trial.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_controller.cc
diff --git a/chrome/browser/autocomplete/autocomplete_controller.cc b/chrome/browser/autocomplete/autocomplete_controller.cc
index bd032216a0d94327ab11603641ea8a7f3b6c9105..e04420395a5b160c1a017ec1032447d5743a44b3 100644
--- a/chrome/browser/autocomplete/autocomplete_controller.cc
+++ b/chrome/browser/autocomplete/autocomplete_controller.cc
@@ -15,6 +15,7 @@
#include "base/strings/string_number_conversions.h"
#include "base/time.h"
#include "chrome/browser/autocomplete/autocomplete_controller_delegate.h"
+#include "chrome/browser/autocomplete/autocomplete_field_trial.h"
#include "chrome/browser/autocomplete/bookmark_provider.h"
#include "chrome/browser/autocomplete/builtin_provider.h"
#include "chrome/browser/autocomplete/extension_app_provider.h"
@@ -94,6 +95,8 @@ AutocompleteController::AutocompleteController(
in_start_(false),
in_zero_suggest_(false),
profile_(profile) {
+ // AND with the disabled providers, if any.
+ provider_types &= ~AutocompleteFieldTrial::GetDisabledProviderTypes();
bool use_hqp = !!(provider_types & AutocompleteProvider::TYPE_HISTORY_QUICK);
// TODO(mrossetti): Permanently modify the HistoryURLProvider to not search
// titles once HQP is turned on permanently.
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_field_trial.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698