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

Unified Diff: content/child/web_url_request_util.cc

Issue 2390583002: [WIP] WebFonts cache-aware timeout adaption (Closed)
Patch Set: fix #52 Created 4 years, 2 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: content/child/web_url_request_util.cc
diff --git a/content/child/web_url_request_util.cc b/content/child/web_url_request_util.cc
index 777e9b7df85dc42580b60d2314c1a1d78a14788a..1e47ac58306541e06bd2ba513d2f4f879bea319a 100644
--- a/content/child/web_url_request_util.cc
+++ b/content/child/web_url_request_util.cc
@@ -492,6 +492,8 @@ blink::WebURLError CreateWebURLError(const blink::WebURL& unreachable_url,
} else if (reason == net::ERR_TEMPORARILY_THROTTLED) {
error.localizedDescription =
WebString::fromUTF8(kThrottledErrorDescription);
+ } else if (reason == net::ERR_CACHE_MISS) {
+ error.isCacheMiss = true;
} else {
error.localizedDescription =
WebString::fromUTF8(net::ErrorToString(reason));

Powered by Google App Engine
This is Rietveld 408576698