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

Unified Diff: content/child/resource_dispatcher.cc

Issue 659093002: Pass the size to the RenderView on creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@java_enum
Patch Set: Created 6 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/resource_dispatcher.cc
diff --git a/content/child/resource_dispatcher.cc b/content/child/resource_dispatcher.cc
index ac2ff3b5f0170ef1c2faf69fed60740d8874174f..96cb2d44893ff0c920e8dfa9b51162221a67ee71 100644
--- a/content/child/resource_dispatcher.cc
+++ b/content/child/resource_dispatcher.cc
@@ -156,6 +156,11 @@ IPCResourceLoaderBridge::IPCResourceLoaderBridge(
request_.service_worker_provider_id =
extra_data->service_worker_provider_id();
frame_origin_ = extra_data->frame_origin();
+
+ if (request_.render_frame_id < 1) {
+ // OPTIONS is used for preflighted requests which are generated internally.
+ DCHECK_EQ("OPTIONS", request_.method);
+ }
piman 2014/10/29 18:42:57 Seems unrelated?
mkosiba (inactive) 2014/10/31 14:35:06 part of a different CL. removed.
}
IPCResourceLoaderBridge::~IPCResourceLoaderBridge() {

Powered by Google App Engine
This is Rietveld 408576698