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

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

Issue 348433009: [AiS] Command-line flag and field trial changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge to fix patch failure Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/omnibox/omnibox_field_trial.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/search_provider.cc
diff --git a/chrome/browser/autocomplete/search_provider.cc b/chrome/browser/autocomplete/search_provider.cc
index 4f14e6f2140a97a8b32ad098170353d7d45fd4ee..4db298b2323da26d02d35b20afc37e6314d99594 100644
--- a/chrome/browser/autocomplete/search_provider.cc
+++ b/chrome/browser/autocomplete/search_provider.cc
@@ -647,8 +647,7 @@ net::URLFetcher* SearchProvider::CreateSuggestFetcher(
search_term_args.input_type = input.type();
search_term_args.cursor_position = input.cursor_position();
search_term_args.page_classification = input.current_page_classification();
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableAnswersInSuggest))
+ if (OmniboxFieldTrial::EnableAnswersInSuggest())
search_term_args.session_token = GetSessionToken();
GURL suggest_url(template_url->suggestions_url_ref().ReplaceSearchTerms(
search_term_args,
« no previous file with comments | « no previous file | chrome/browser/omnibox/omnibox_field_trial.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698