Index: content/renderer/render_view_impl.cc |
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc |
index d7714267f8aa35ba4921964ca7962acfef4f4808..3d2ae52ea8468586e530995fe02848002e04d456 100644 |
--- a/content/renderer/render_view_impl.cc |
+++ b/content/renderer/render_view_impl.cc |
@@ -2659,7 +2659,7 @@ void RenderViewImpl::showContextMenu( |
// in the context menu. |
// TODO(jcivelli): http://crbug.com/45160 This prevents us from saving large |
// data encoded images. We should have a way to save them. |
- if (params.src_url.spec().size() > kMaxURLChars) |
+ if (params.src_url.spec().size() > MaxURLChars()) |
params.src_url = GURL(); |
context_menu_node_ = data.node; |
@@ -2699,9 +2699,9 @@ void RenderViewImpl::UpdateTargetURL(const GURL& url, |
pending_target_url_ = latest_url; |
target_url_status_ = TARGET_PENDING; |
} else { |
- // URLs larger than |kMaxURLChars| cannot be sent through IPC - |
+ // URLs larger than |MaxURLChars()| cannot be sent through IPC - |
// see |ParamTraits<GURL>|. |
- if (latest_url.possibly_invalid_spec().size() > kMaxURLChars) |
+ if (latest_url.possibly_invalid_spec().size() > MaxURLChars()) |
latest_url = GURL(); |
Send(new ViewHostMsg_UpdateTargetURL(routing_id_, page_id_, latest_url)); |
target_url_ = latest_url; |