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

Unified Diff: chrome/browser/ui/search/new_tab_page_interceptor_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
« no previous file with comments | « chrome/browser/ui/search/local_ntp_browsertest.cc ('k') | chrome/browser/ui/search/search_ipc_router.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/search/new_tab_page_interceptor_service.cc
diff --git a/chrome/browser/ui/search/new_tab_page_interceptor_service.cc b/chrome/browser/ui/search/new_tab_page_interceptor_service.cc
index 0b2d4bb2b005ccf0e0305728a3f221dac2875f3a..1c37519be1ebe5302a5557d82189c24495e94892 100644
--- a/chrome/browser/ui/search/new_tab_page_interceptor_service.cc
+++ b/chrome/browser/ui/search/new_tab_page_interceptor_service.cc
@@ -77,8 +77,8 @@ class NewTabPageInterceptor : public net::URLRequestInterceptor {
// Failure to load the NTP correctly; redirect to Local NTP.
UMA_HISTOGRAM_ENUMERATION("InstantExtended.CacheableNTPLoad",
- chrome::CACHEABLE_NTP_LOAD_FAILED,
- chrome::CACHEABLE_NTP_LOAD_MAX);
+ search::CACHEABLE_NTP_LOAD_FAILED,
+ search::CACHEABLE_NTP_LOAD_MAX);
return new net::URLRequestRedirectJob(
request, network_delegate, GURL(chrome::kChromeSearchLocalNtpUrl),
net::URLRequestRedirectJob::REDIRECT_307_TEMPORARY_REDIRECT,
@@ -106,7 +106,7 @@ NewTabPageInterceptorService::~NewTabPageInterceptorService() {
void NewTabPageInterceptorService::OnTemplateURLServiceChanged() {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
- GURL new_tab_page_url(chrome::GetNewTabPageURL(profile_));
+ GURL new_tab_page_url(search::GetNewTabPageURL(profile_));
content::BrowserThread::PostTask(
content::BrowserThread::IO, FROM_HERE,
base::Bind(&NewTabPageInterceptor::SetNewTabPageURL, interceptor_,
@@ -117,7 +117,7 @@ scoped_ptr<net::URLRequestInterceptor>
NewTabPageInterceptorService::CreateInterceptor() {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
scoped_ptr<NewTabPageInterceptor> interceptor(
- new NewTabPageInterceptor(chrome::GetNewTabPageURL(profile_)));
+ new NewTabPageInterceptor(search::GetNewTabPageURL(profile_)));
interceptor_ = interceptor->GetWeakPtr();
return interceptor.Pass();
}
« no previous file with comments | « chrome/browser/ui/search/local_ntp_browsertest.cc ('k') | chrome/browser/ui/search/search_ipc_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698