[OnionSoup] Remove content::RequestContextType
The ultimate target of this work is moving fetch_api_request.mojom into
third_party/blink/public/mojom/fetch/ folder. To accomplish the goal, the
whole work is seperated into six parts.
1. Remove content::RequestContextType. Use blink.mojom.RequestContextType
instead. -------- This CL
2. Remove content::ServiceWorkerFetchRequest. Use
blink.mojom.FetchAPIRequest instead.
3. Remove blink::WebURLRequest::RequestContext. Use
blink.mojom.RequestContextType instead.
4. Remove blink::WebServiceWorkerRequest. Use
blink.mojom.FetchAPIRequest instead.
5. Remove blink::WebReferrerPolicy. Use blink::mojom::ReferrerPolicy
instead. --------- CL:1212345
6. Remove content::Referrer, blink::Referrer Use blink::mojom::Referrer
instead.
Once all the above tasks get done, fetch_api_request.mojom can be moved
into that folder.
Change-Id: Id9bbac8f67a7aa511a0c642ddd5e9a837dcdd4cd
Reviewed-on: https://chromium-review.googlesource.com/1229704
Commit-Queue: Richard Li <[email protected]>
Reviewed-by: Kinuko Yasuda <[email protected]>
Reviewed-by: Leon Han <[email protected]>
Cr-Commit-Position: refs/heads/master@{#592334}
diff --git a/content/browser/loader/navigation_url_loader_impl.cc b/content/browser/loader/navigation_url_loader_impl.cc
index 91f6f32..c86505e 100644
--- a/content/browser/loader/navigation_url_loader_impl.cc
+++ b/content/browser/loader/navigation_url_loader_impl.cc
@@ -253,7 +253,7 @@
network::mojom::FetchCredentialsMode::kInclude;
new_request->fetch_redirect_mode = network::mojom::FetchRedirectMode::kManual;
new_request->fetch_request_context_type =
- request_info->begin_params->request_context_type;
+ static_cast<int>(request_info->begin_params->request_context_type);
new_request->upgrade_if_insecure = request_info->upgrade_if_insecure;
new_request->throttling_profile_id = request_info->devtools_frame_token;
return new_request;