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

Unified Diff: 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 | « chrome/browser/search/search_unittest.cc ('k') | chrome/browser/sessions/session_restore.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search_engines/ui_thread_search_terms_data.cc
diff --git a/chrome/browser/search_engines/ui_thread_search_terms_data.cc b/chrome/browser/search_engines/ui_thread_search_terms_data.cc
index 773896f98af535c41cdf31311e30a04a3b3935a3..ead1dc57695cfaea59bef7b33b0bdc6218a1ebcb 100644
--- a/chrome/browser/search_engines/ui_thread_search_terms_data.cc
+++ b/chrome/browser/search_engines/ui_thread_search_terms_data.cc
@@ -111,7 +111,7 @@ std::string UIThreadSearchTermsData::GetSuggestClient() const {
return ui::GetDeviceFormFactor() == ui::DEVICE_FORM_FACTOR_PHONE ?
"chrome" : "chrome-omni";
#else
- return chrome::IsInstantExtendedAPIEnabled() ? "chrome-omni" : "chrome";
+ return search::IsInstantExtendedAPIEnabled() ? "chrome-omni" : "chrome";
#endif
}
@@ -126,33 +126,33 @@ std::string UIThreadSearchTermsData::GetSuggestRequestIdentifier() const {
}
bool UIThreadSearchTermsData::IsShowingSearchTermsOnSearchResultsPages() const {
- return chrome::IsInstantExtendedAPIEnabled() &&
- chrome::IsQueryExtractionEnabled();
+ return search::IsInstantExtendedAPIEnabled() &&
+ search::IsQueryExtractionEnabled();
}
std::string UIThreadSearchTermsData::InstantExtendedEnabledParam(
bool for_search) const {
- return chrome::InstantExtendedEnabledParam(for_search);
+ return search::InstantExtendedEnabledParam(for_search);
}
std::string UIThreadSearchTermsData::ForceInstantResultsParam(
bool for_prerender) const {
- return chrome::ForceInstantResultsParam(for_prerender);
+ return search::ForceInstantResultsParam(for_prerender);
}
int UIThreadSearchTermsData::OmniboxStartMargin() const {
InstantService* instant_service =
InstantServiceFactory::GetForProfile(profile_);
// Android and iOS have no InstantService.
- return instant_service ?
- instant_service->omnibox_start_margin() : chrome::kDisableStartMargin;
+ return instant_service ? instant_service->omnibox_start_margin()
+ : search::kDisableStartMargin;
}
std::string UIThreadSearchTermsData::NTPIsThemedParam() const {
DCHECK(!BrowserThread::IsThreadInitialized(BrowserThread::UI) ||
BrowserThread::CurrentlyOn(BrowserThread::UI));
#if defined(ENABLE_THEMES)
- if (!chrome::IsInstantExtendedAPIEnabled())
+ if (!search::IsInstantExtendedAPIEnabled())
return std::string();
// TODO(dhollowa): Determine fraction of custom themes that don't affect the
« no previous file with comments | « chrome/browser/search/search_unittest.cc ('k') | chrome/browser/sessions/session_restore.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698