| 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..31127f27e93b1d2df2a7cbf047dbd5a0be249830 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() > GetMaxURLChars()) {
|
| + LOG(WARNING) << "Refusing to load URL as it exceeds " << GetMaxURLChars()
|
| << " characters.";
|
| return false;
|
| }
|
|
|