Index: content/browser/web_contents/web_contents_impl.cc |
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
index 3c5437c71dfacdbcfb675ec40a91945a8b9a0fcf..89fa5c6f66415bb3d57ae01f3bb62cc98b7255bb 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -77,6 +77,7 @@ |
#include "content/public/common/page_zoom.h" |
#include "content/public/common/result_codes.h" |
#include "content/public/common/url_constants.h" |
+#include "content/public/common/url_utils.h" |
#include "net/base/mime_util.h" |
#include "net/base/net_util.h" |
#include "net/http/http_cache.h" |
@@ -1674,8 +1675,8 @@ bool WebContentsImpl::NavigateToEntry( |
// The renderer will reject IPC messages with URLs longer than |
// this limit, so don't attempt to navigate with a longer URL. |
- if (entry.GetURL().spec().size() > kMaxURLChars) { |
- LOG(WARNING) << "Refusing to load URL as it exceeds " << kMaxURLChars |
+ if (entry.GetURL().spec().size() > MaxURLChars()) { |
+ LOG(WARNING) << "Refusing to load URL as it exceeds " << MaxURLChars() |
<< " characters."; |
return false; |
} |