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

Unified Diff: content/browser/frame_host/navigation_controller_impl.cc

Issue 2166113002: Simplify decidePolicyForNavigation + remove POST-only-in-http(s) DCHECK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | content/renderer/render_frame_impl.cc » ('j') | content/renderer/render_frame_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/navigation_controller_impl.cc
diff --git a/content/browser/frame_host/navigation_controller_impl.cc b/content/browser/frame_host/navigation_controller_impl.cc
index bb9b2c55cd6eb7ec0d430e889802e34f7ac407b3..9667ddd598cdaff167021dcd4becd9d7014aaff7 100644
--- a/content/browser/frame_host/navigation_controller_impl.cc
+++ b/content/browser/frame_host/navigation_controller_impl.cc
@@ -663,16 +663,7 @@ void NavigationControllerImpl::LoadURLWithParams(const LoadURLParams& params) {
// Checks based on params.load_type.
switch (params.load_type) {
case LOAD_TYPE_DEFAULT:
- break;
case LOAD_TYPE_HTTP_POST:
- // TODO(lukasza): This assertion is false - it is also possible to POST to
- // an chrome-extension://... URI. This might be more common when
- // allowing renderer-initiated POST after fixing https://crbug.com/344348.
- if (!params.url.SchemeIs(url::kHttpScheme) &&
- !params.url.SchemeIs(url::kHttpsScheme)) {
- NOTREACHED() << "Http post load must use http(s) scheme.";
- return;
- }
Łukasz Anforowicz 2016/07/20 22:23:04 I think simply removing the DCHECK is the best opt
Charlie Reis 2016/07/20 22:50:38 Thanks. I think I agree, if the net stack is just
Charlie Reis 2016/07/21 23:25:21 Sure.
break;
case LOAD_TYPE_DATA:
if (!params.url.SchemeIs(url::kDataScheme)) {
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.cc » ('j') | content/renderer/render_frame_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698