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

Unified Diff: components/omnibox/search_provider.cc

Issue 1185723002: Prepare HistoryProvider for componentization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to review Created 5 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
Index: components/omnibox/search_provider.cc
diff --git a/components/omnibox/search_provider.cc b/components/omnibox/search_provider.cc
index e97e7f09302160f4873e7784974334e0ab634d8f..d6fffa65613d7e56c9149d70642406a0fb1bf591 100644
--- a/components/omnibox/search_provider.cc
+++ b/components/omnibox/search_provider.cc
@@ -118,11 +118,11 @@ class SearchProvider::CompareScoredResults {
// SearchProvider -------------------------------------------------------------
-SearchProvider::SearchProvider(
- AutocompleteProviderListener* listener,
- TemplateURLService* template_url_service,
- scoped_ptr<AutocompleteProviderClient> client)
- : BaseSearchProvider(template_url_service, client.Pass(),
+SearchProvider::SearchProvider(AutocompleteProviderListener* listener,
+ TemplateURLService* template_url_service,
+ AutocompleteProviderClient* client)
+ : BaseSearchProvider(template_url_service,
+ client,
AutocompleteProvider::TYPE_SEARCH),
listener_(listener),
providers_(template_url_service),
@@ -850,7 +850,7 @@ scoped_ptr<net::URLFetcher> SearchProvider::CreateSuggestFetcher(
// the user is in the field trial.
if (CanSendURL(current_page_url_, suggest_url, template_url,
input.current_page_classification(),
- template_url_service_->search_terms_data(), client_.get()) &&
+ template_url_service_->search_terms_data(), client_) &&
OmniboxFieldTrial::InZeroSuggestAfterTypingFieldTrial()) {
search_term_args.current_page_url = current_page_url_.spec();
// Create the suggest URL again with the current page URL.
« components/omnibox/base_search_provider.h ('K') | « components/omnibox/search_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698