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

Unified Diff: chrome/browser/search/instant_service.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/search/instant_service.cc
diff --git a/chrome/browser/search/instant_service.cc b/chrome/browser/search/instant_service.cc
index 5f668effb17431b5f644491abaeffea26079ed2a..532c30c2c6338cedab0207b5f19bf476ed9293e2 100644
--- a/chrome/browser/search/instant_service.cc
+++ b/chrome/browser/search/instant_service.cc
@@ -28,6 +28,7 @@
#include "components/favicon/core/large_icon_service.h"
#include "components/history/core/browser/top_sites.h"
#include "components/keyed_service/core/service_access_type.h"
+#include "components/search/search.h"
#include "components/search_engines/template_url_service.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/notification_service.h"
@@ -52,7 +53,7 @@
InstantService::InstantService(Profile* profile)
: profile_(profile),
template_url_service_(TemplateURLServiceFactory::GetForProfile(profile_)),
- omnibox_start_margin_(chrome::kDisableStartMargin),
+ omnibox_start_margin_(search::kDisableStartMargin),
weak_ptr_factory_(this) {
// The initialization below depends on a typical set of browser threads. Skip
// it if we are running in a unit test without the full suite.
@@ -245,7 +246,7 @@ void InstantService::Observe(int type,
void InstantService::SendSearchURLsToRenderer(content::RenderProcessHost* rph) {
rph->Send(new ChromeViewMsg_SetSearchURLs(
- chrome::GetSearchURLs(profile_), chrome::GetNewTabPageURL(profile_)));
+ search::GetSearchURLs(profile_), search::GetNewTabPageURL(profile_)));
}
void InstantService::OnOmniboxStartMarginChanged(int start_margin) {
@@ -461,10 +462,10 @@ void InstantService::TopSitesChanged(history::TopSites* top_sites,
}
void InstantService::ResetInstantSearchPrerenderer() {
- if (!chrome::ShouldPrefetchSearchResults())
+ if (!search::ShouldPrefetchSearchResults())
return;
- GURL url(chrome::GetSearchResultPrefetchBaseURL(profile_));
+ GURL url(search::GetSearchResultPrefetchBaseURL(profile_));
instant_prerenderer_.reset(
url.is_valid() ? new InstantSearchPrerenderer(profile_, url) : NULL);
}
« no previous file with comments | « chrome/browser/renderer_context_menu/render_view_context_menu.cc ('k') | chrome/browser/search/instant_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698