| 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 a23efb95731e17e09d46447ad226293c525421f1..baf2bcdb4c383096c4c14d1858a34ddb305befb7 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 {
|
|
|
| @@ -290,8 +291,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;
|
| }
|
|
|