Index: content/renderer/render_frame_impl.cc |
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc |
index e023ac37b81aa7327ea4c4e6390605417c3b664d..4e41a9a2a117db72fd42320c0b9d5c00558e6126 100644 |
--- a/content/renderer/render_frame_impl.cc |
+++ b/content/renderer/render_frame_impl.cc |
@@ -180,6 +180,7 @@ |
#include "third_party/WebKit/public/web/WebSurroundingText.h" |
#include "third_party/WebKit/public/web/WebUserGestureIndicator.h" |
#include "third_party/WebKit/public/web/WebView.h" |
+#include "url/url_constants.h" |
#include "url/url_util.h" |
#if defined(ENABLE_PLUGINS) |
@@ -3666,7 +3667,7 @@ void RenderFrameImpl::showContextMenu(const blink::WebContextMenuData& data) { |
// 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() > url::kMaxURLChars) |
params.src_url = GURL(); |
context_menu_node_ = data.node; |