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

Unified Diff: android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc

Issue 2737663004: Introduce a secondary map for enabling plznavigate (Closed)
Patch Set: with plznavigate Created 3 years, 9 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: android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc
diff --git a/android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc b/android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc
index 8a3c1c328417421d70d769b7691b0a586d38f976..4fbac3522c2a4df86c526b8f62de0120da812191 100644
--- a/android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc
+++ b/android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc
@@ -162,6 +162,16 @@ IoThreadClientThrottle::GetIoThreadClient() const {
if (content::ResourceRequestInfo::OriginatedFromServiceWorker(request_))
return AwContentsIoThreadClient::GetServiceWorkerIoThreadClient();
+ if (render_process_id_ == -1 || render_frame_id_ == -1) {
+ const content::ResourceRequestInfo* resourceRequestInfo =
+ content::ResourceRequestInfo::ForRequest(request_);
+ if (resourceRequestInfo == nullptr) {
+ return nullptr;
+ }
+ return AwContentsIoThreadClient::FromID(
+ resourceRequestInfo->GetFrameTreeNodeId());
+ }
+
return AwContentsIoThreadClient::FromID(render_process_id_, render_frame_id_);
}

Powered by Google App Engine
This is Rietveld 408576698