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

Unified Diff: chrome/browser/ui/search/instant_search_prerenderer.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
Index: chrome/browser/ui/search/instant_search_prerenderer.cc
diff --git a/chrome/browser/ui/search/instant_search_prerenderer.cc b/chrome/browser/ui/search/instant_search_prerenderer.cc
index e9e4cf827928f67c17830aeb6d718021d53513b9..1d190c4b95f405b48df54d7b54bf832a4e06c1d1 100644
--- a/chrome/browser/ui/search/instant_search_prerenderer.cc
+++ b/chrome/browser/ui/search/instant_search_prerenderer.cc
@@ -15,6 +15,7 @@
#include "chrome/browser/ui/browser_navigator.h"
#include "chrome/browser/ui/search/search_tab_helper.h"
#include "components/omnibox/browser/autocomplete_match.h"
+#include "components/search/search.h"
#include "components/search_engines/template_url_service.h"
namespace {
@@ -132,7 +133,7 @@ bool InstantSearchPrerenderer::UsePrerenderedPage(
const GURL& url,
chrome::NavigateParams* params) {
base::string16 search_terms =
- chrome::ExtractSearchTermsFromURL(profile_, url);
+ search::ExtractSearchTermsFromURL(profile_, url);
prerender::PrerenderManager* prerender_manager =
prerender::PrerenderManagerFactory::GetForProfile(profile_);
if (search_terms.empty() || !params->target_contents ||
@@ -191,7 +192,7 @@ content::WebContents* InstantSearchPrerenderer::prerender_contents() const {
bool InstantSearchPrerenderer::QueryMatchesPrefetch(
const base::string16& query) const {
- if (chrome::ShouldReuseInstantSearchBasePage())
+ if (search::ShouldReuseInstantSearchBasePage())
return true;
return last_instant_suggestion_.text == query;
}

Powered by Google App Engine
This is Rietveld 408576698