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

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

Issue 254763005: Move some content url constants to /url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and address some style nits. Created 6 years, 8 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/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 b1b3ef346e74d340497e5b9bd4a80b004688e812..12be054eb22502fe1f0c1e2d532ba0415a91d38a 100644
--- a/content/browser/frame_host/navigation_controller_impl.cc
+++ b/content/browser/frame_host/navigation_controller_impl.cc
@@ -38,6 +38,7 @@
#include "net/base/escape.h"
#include "net/base/mime_util.h"
#include "net/base/net_util.h"
+#include "net/base/url_constants.h"
#include "skia/ext/platform_canvas.h"
namespace content {
@@ -654,8 +655,8 @@ void NavigationControllerImpl::LoadURLWithParams(const LoadURLParams& params) {
case LOAD_TYPE_DEFAULT:
break;
case LOAD_TYPE_BROWSER_INITIATED_HTTP_POST:
- if (!params.url.SchemeIs(kHttpScheme) &&
- !params.url.SchemeIs(kHttpsScheme)) {
+ if (!params.url.SchemeIs(net::kHttpScheme) &&
+ !params.url.SchemeIs(net::kHttpsScheme)) {
NOTREACHED() << "Http post load must use http(s) scheme.";
return;
}

Powered by Google App Engine
This is Rietveld 408576698