Index: content/browser/frame_host/navigator_impl.cc |
diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc |
index 8a318070e7b18f0df6660a1b0e4f3a18ae0480b6..31ce6a0b235cf10b7012a612892cb84f64e18136 100644 |
--- a/content/browser/frame_host/navigator_impl.cc |
+++ b/content/browser/frame_host/navigator_impl.cc |
@@ -42,6 +42,7 @@ |
#include "content/public/common/resource_response.h" |
#include "content/public/common/url_constants.h" |
#include "net/base/net_errors.h" |
+#include "url/url_constants.h" |
namespace content { |
@@ -275,8 +276,8 @@ bool NavigatorImpl::NavigateToEntry( |
// The renderer will reject IPC messages with URLs longer than |
// this limit, so don't attempt to navigate with a longer URL. |
- if (dest_url.spec().size() > kMaxURLChars) { |
- LOG(WARNING) << "Refusing to load URL as it exceeds " << kMaxURLChars |
+ if (dest_url.spec().size() > url::kMaxURLChars) { |
+ LOG(WARNING) << "Refusing to load URL as it exceeds " << url::kMaxURLChars |
<< " characters."; |
return false; |
} |