| Index: chrome/browser/net/view_http_cache_job_factory.cc
|
| ===================================================================
|
| --- chrome/browser/net/view_http_cache_job_factory.cc (revision 88158)
|
| +++ chrome/browser/net/view_http_cache_job_factory.cc (working copy)
|
| @@ -127,13 +127,12 @@
|
|
|
| AddRef(); // Released on OnIOComplete().
|
| std::string cache_key =
|
| - request.url().spec().substr(strlen(chrome::kChromeUINetworkViewCacheURL));
|
| + request.url().spec().substr(strlen(chrome::kNetworkViewCacheURL));
|
|
|
| int rv;
|
| if (cache_key.empty()) {
|
| rv = cache_helper_.GetContentsHTML(request.context(),
|
| - chrome::kChromeUINetworkViewCacheURL,
|
| - &data_,
|
| + chrome::kNetworkViewCacheURL, &data_,
|
| &callback_);
|
| } else {
|
| rv = cache_helper_.GetEntryInfoHTML(cache_key, request.context(),
|
| @@ -184,8 +183,8 @@
|
|
|
| // Static.
|
| bool ViewHttpCacheJobFactory::IsSupportedURL(const GURL& url) {
|
| - return url.SchemeIs(chrome::kChromeUIScheme) &&
|
| - url.host() == chrome::kChromeUINetworkViewCacheHost;
|
| + return StartsWithASCII(url.spec(), chrome::kNetworkViewCacheURL,
|
| + true /*case_sensitive*/);
|
| }
|
|
|
| // Static.
|
|
|