Index: content/public/common/common_param_traits.cc |
diff --git a/content/public/common/common_param_traits.cc b/content/public/common/common_param_traits.cc |
index 0501683374c3fa67233cdef8a07985efd1d8f5cd..ff910d08b8257db21e227ba59092e011b14beb3f 100644 |
--- a/content/public/common/common_param_traits.cc |
+++ b/content/public/common/common_param_traits.cc |
@@ -7,6 +7,7 @@ |
#include "content/public/common/content_constants.h" |
#include "content/public/common/page_state.h" |
#include "content/public/common/referrer.h" |
+#include "content/public/common/url_utils.h" |
#include "net/base/host_port_pair.h" |
#include "third_party/skia/include/core/SkBitmap.h" |
#include "ui/gfx/rect.h" |
@@ -50,7 +51,7 @@ struct SkBitmap_Data { |
namespace IPC { |
void ParamTraits<GURL>::Write(Message* m, const GURL& p) { |
- DCHECK(p.possibly_invalid_spec().length() <= content::kMaxURLChars); |
+ DCHECK(p.possibly_invalid_spec().length() <= content::MaxURLChars()); |
// Beware of print-parse inconsistency which would change an invalid |
// URL into a valid one. Ideally, the message would contain this flag |
@@ -69,7 +70,7 @@ void ParamTraits<GURL>::Write(Message* m, const GURL& p) { |
bool ParamTraits<GURL>::Read(const Message* m, PickleIterator* iter, GURL* p) { |
std::string s; |
- if (!m->ReadString(iter, &s) || s.length() > content::kMaxURLChars) { |
+ if (!m->ReadString(iter, &s) || s.length() > content::MaxURLChars()) { |
*p = GURL(); |
return false; |
} |