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

Unified Diff: chrome/browser/net/view_http_cache_job_factory.cc

Issue 7064052: Revert 88142 to fix sync_integration_tests offline. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 6 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/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.
« no previous file with comments | « chrome/browser/net/view_blob_internals_job_factory.cc ('k') | chrome/browser/printing/cloud_print/cloud_print_setup_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698