| Index: chrome/browser/search/local_ntp_source.cc
|
| diff --git a/chrome/browser/search/local_ntp_source.cc b/chrome/browser/search/local_ntp_source.cc
|
| index 85821bc805245b8f04dc42d5d69acd09c9aacbcf..8f4b7085fb04b103e298781486a92ab68fd78812 100644
|
| --- a/chrome/browser/search/local_ntp_source.cc
|
| +++ b/chrome/browser/search/local_ntp_source.cc
|
| @@ -388,16 +388,20 @@ bool LocalNtpSource::AllowCaching() const {
|
| }
|
|
|
| bool LocalNtpSource::ShouldServiceRequest(
|
| - const net::URLRequest* request) const {
|
| + const GURL& url,
|
| + content::ResourceContext* resource_context,
|
| + int render_process_id) const {
|
| DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
|
|
|
| - DCHECK(request->url().host_piece() == chrome::kChromeSearchLocalNtpHost);
|
| - if (!InstantIOContext::ShouldServiceRequest(request))
|
| + DCHECK(url.host_piece() == chrome::kChromeSearchLocalNtpHost);
|
| + if (!InstantIOContext::ShouldServiceRequest(url, resource_context,
|
| + render_process_id)) {
|
| return false;
|
| + }
|
|
|
| - if (request->url().SchemeIs(chrome::kChromeSearchScheme)) {
|
| + if (url.SchemeIs(chrome::kChromeSearchScheme)) {
|
| std::string filename;
|
| - webui::ParsePathAndScale(request->url(), &filename, nullptr);
|
| + webui::ParsePathAndScale(url, &filename, nullptr);
|
| for (size_t i = 0; i < arraysize(kResources); ++i) {
|
| if (filename == kResources[i].filename)
|
| return true;
|
|
|