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 7050456b1a2a610c64db0f821abe8a29b61ea4e1..45825c65c7c3629dc620310bf2aff3ec9a968043 100644 |
--- a/content/browser/frame_host/navigator_impl.cc |
+++ b/content/browser/frame_host/navigator_impl.cc |
@@ -36,10 +36,10 @@ |
#include "content/public/browser/user_metrics.h" |
#include "content/public/common/bindings_policy.h" |
#include "content/public/common/content_client.h" |
+#include "content/public/common/content_constants.h" |
#include "content/public/common/content_switches.h" |
#include "content/public/common/resource_response.h" |
#include "content/public/common/url_constants.h" |
-#include "content/public/common/url_utils.h" |
#include "net/base/net_errors.h" |
namespace content { |
@@ -281,8 +281,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() > GetMaxURLChars()) { |
- LOG(WARNING) << "Refusing to load URL as it exceeds " << GetMaxURLChars() |
+ if (dest_url.spec().size() > kMaxURLChars) { |
+ LOG(WARNING) << "Refusing to load URL as it exceeds " << kMaxURLChars |
<< " characters."; |
return false; |
} |