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

Unified Diff: ios/chrome/browser/search_engines/ui_thread_search_terms_data.cc

Issue 1260033003: Partially componentize //chrome/browser/search/search.{h,cc} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation on iOS Created 5 years, 4 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 | « ios/chrome/browser/search/search_util.cc ('k') | ios/chrome/ios_chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/search_engines/ui_thread_search_terms_data.cc
diff --git a/ios/chrome/browser/search_engines/ui_thread_search_terms_data.cc b/ios/chrome/browser/search_engines/ui_thread_search_terms_data.cc
index 9468dd7d90def465e67740355c9f1f50542841f7..e09d36f08c6ba84b5e85fb034ebfe8761c460eba 100644
--- a/ios/chrome/browser/search_engines/ui_thread_search_terms_data.cc
+++ b/ios/chrome/browser/search_engines/ui_thread_search_terms_data.cc
@@ -15,8 +15,6 @@
#include "ios/chrome/browser/google/google_brand.h"
#include "ios/chrome/browser/google/google_url_tracker_factory.h"
#include "ios/chrome/common/channel_info.h"
-#include "ios/public/provider/chrome/browser/chrome_browser_provider.h"
-#include "ios/public/provider/chrome/browser/search_provider.h"
#include "ios/web/public/web_thread.h"
#include "url/gurl.h"
@@ -83,7 +81,7 @@ std::string UIThreadSearchTermsData::GetSearchClient() const {
std::string UIThreadSearchTermsData::GetSuggestClient() const {
DCHECK(thread_checker_.CalledOnValidThread());
- return chrome::IsInstantExtendedAPIEnabled() ? "chrome-omni" : "chrome";
+ return search::IsInstantExtendedAPIEnabled() ? "chrome-omni" : "chrome";
}
std::string UIThreadSearchTermsData::GetSuggestRequestIdentifier() const {
@@ -93,37 +91,31 @@ std::string UIThreadSearchTermsData::GetSuggestRequestIdentifier() const {
bool UIThreadSearchTermsData::IsShowingSearchTermsOnSearchResultsPages() const {
DCHECK(thread_checker_.CalledOnValidThread());
- return chrome::IsInstantExtendedAPIEnabled() &&
- ios::GetChromeBrowserProvider()
- ->GetSearchProvider()
- ->IsQueryExtractionEnabled();
+ return search::IsInstantExtendedAPIEnabled() &&
+ search::IsQueryExtractionEnabled();
}
std::string UIThreadSearchTermsData::InstantExtendedEnabledParam(
bool for_search) const {
DCHECK(thread_checker_.CalledOnValidThread());
- return ios::GetChromeBrowserProvider()
- ->GetSearchProvider()
- ->InstantExtendedEnabledParam(for_search);
+ return search::InstantExtendedEnabledParam(for_search);
}
std::string UIThreadSearchTermsData::ForceInstantResultsParam(
bool for_prerender) const {
DCHECK(thread_checker_.CalledOnValidThread());
- return ios::GetChromeBrowserProvider()
- ->GetSearchProvider()
- ->ForceInstantResultsParam(for_prerender);
+ return search::ForceInstantResultsParam(for_prerender);
}
int UIThreadSearchTermsData::OmniboxStartMargin() const {
DCHECK(thread_checker_.CalledOnValidThread());
- return ios::GetChromeBrowserProvider()
- ->GetSearchProvider()
- ->OmniboxStartMargin();
+ // iOS has not InstantService.
+ return search::kDisableStartMargin;
}
std::string UIThreadSearchTermsData::NTPIsThemedParam() const {
DCHECK(thread_checker_.CalledOnValidThread());
+ // iOS does not supports themed NTP.
return std::string();
}
« no previous file with comments | « ios/chrome/browser/search/search_util.cc ('k') | ios/chrome/ios_chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698