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

Unified Diff: content/child/web_url_request_util.cc

Issue 428733010: Prepare for new WebURLRequest::RequestContext enum values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Everything moved. Created 6 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 be5ee32ba2d852cc7e26824466064285799a544a..19066848b33e63338a78b5b4cb4cb129bd251d16 100644
--- a/content/child/web_url_request_util.cc
+++ b/content/child/web_url_request_util.cc
@@ -104,7 +104,6 @@ ResourceType WebURLRequestToResourceType(const WebURLRequest& request) {
// These should be handled by the FrameType checks at the top of the
// function.
- // Main Frame
case WebURLRequest::RequestContextForm:
case WebURLRequest::RequestContextHyperlink:
case WebURLRequest::RequestContextLocation:
@@ -112,9 +111,11 @@ ResourceType WebURLRequestToResourceType(const WebURLRequest& request) {
case WebURLRequest::RequestContextIframe:
NOTREACHED();
return RESOURCE_TYPE_SUB_RESOURCE;
+
+ default:
+ NOTREACHED();
+ return RESOURCE_TYPE_SUB_RESOURCE;
}
- NOTREACHED();
- return RESOURCE_TYPE_SUB_RESOURCE;
}
} // namespace content
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698