Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Issue 112053002: Allow the max url length to be overridden (Closed)

Created:
7 years ago by Kristian Monsen
Modified:
7 years ago
Reviewers:
jamesr, sky, Jói, jam, boliu, Tom Sepez
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, miu+watch_chromium.org
Visibility:
Public.

Description

Allow the max url length to be overridden This is needed for WebView Classic compatibility, and since it shipped with KK it is needed to finish unforking. There is no define to separate between Android WebView and Chrome for Android which is why this is done with a setter function instead of a define. NOTRY=true BUG=298495 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241065

Patch Set 1 #

Patch Set 2 : Actually using the new API in AWV #

Total comments: 6

Patch Set 3 : Wrapping the setting in OS_ANDROID ifdef #

Total comments: 17

Patch Set 4 : Fixup #

Total comments: 1

Patch Set 5 : Adding function comment and reordering functions #

Patch Set 6 : Checking that the command line flag for single process #

Patch Set 7 : Removed a space #

Patch Set 8 : including build headers so OS_ANDROID will be defined #

Total comments: 2

Patch Set 9 : Fixed comment nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -16 lines) Patch
M android_webview/browser/aw_browser_main_parts.cc View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M content/public/common/common_param_traits.cc View 1 2 3 3 chunks +3 lines, -2 lines 0 comments Download
M content/public/common/content_constants.h View 1 chunk +0 lines, -7 lines 0 comments Download
M content/public/common/content_constants.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M content/public/common/url_utils.h View 1 2 3 4 5 6 7 2 chunks +25 lines, -0 lines 0 comments Download
M content/public/common/url_utils.cc View 1 2 3 4 5 6 7 8 2 chunks +19 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
Kristian Monsen
Did you think something along these lines?
7 years ago (2013-12-10 21:27:59 UTC) #1
boliu
Yep. Maybe consider wrapping the setter in OS_ANDROID. https://codereview.chromium.org/112053002/diff/20001/android_webview/lib/main/aw_main_delegate.cc File android_webview/lib/main/aw_main_delegate.cc (right): https://codereview.chromium.org/112053002/diff/20001/android_webview/lib/main/aw_main_delegate.cc#newcode51 android_webview/lib/main/aw_main_delegate.cc:51: content::SetMaxURLChars(20 ...
7 years ago (2013-12-10 21:35:44 UTC) #2
Kristian Monsen
Updated based no feedback, PTAL. https://codereview.chromium.org/112053002/diff/20001/android_webview/lib/main/aw_main_delegate.cc File android_webview/lib/main/aw_main_delegate.cc (right): https://codereview.chromium.org/112053002/diff/20001/android_webview/lib/main/aw_main_delegate.cc#newcode51 android_webview/lib/main/aw_main_delegate.cc:51: content::SetMaxURLChars(20 * 1024 * ...
7 years ago (2013-12-10 21:42:06 UTC) #3
boliu
lgtm https://codereview.chromium.org/112053002/diff/40001/content/public/common/url_utils.h File content/public/common/url_utils.h (right): https://codereview.chromium.org/112053002/diff/40001/content/public/common/url_utils.h#newcode33 content/public/common/url_utils.h:33: CONTENT_EXPORT size_t MaxURLChars(); Oh, just noticed, this doesn't ...
7 years ago (2013-12-10 21:46:47 UTC) #4
Kristian Monsen
Please take a look as this is one of the final CL's blocking upstreaming of ...
7 years ago (2013-12-10 22:01:24 UTC) #5
Kristian Monsen
Added tsepez for security.
7 years ago (2013-12-10 22:03:23 UTC) #6
Tom Sepez
Security LGTM, few nits. https://codereview.chromium.org/112053002/diff/40001/content/public/common/url_utils.cc File content/public/common/url_utils.cc (right): https://codereview.chromium.org/112053002/diff/40001/content/public/common/url_utils.cc#newcode14 content/public/common/url_utils.cc:14: static size_t g_max_url_size = 2 ...
7 years ago (2013-12-10 22:12:18 UTC) #7
boliu
https://codereview.chromium.org/112053002/diff/40001/content/public/common/content_constants.h File content/public/common/content_constants.h (left): https://codereview.chromium.org/112053002/diff/40001/content/public/common/content_constants.h#oldcode50 content/public/common/content_constants.h:50: CONTENT_EXPORT extern const size_t kMaxURLChars; Missed this one: Delete ...
7 years ago (2013-12-10 22:21:59 UTC) #8
Jói
Rubber stamp LGTM for //content/public with current set of comments addressed. Note, when you add ...
7 years ago (2013-12-11 09:13:19 UTC) #9
jam
https://codereview.chromium.org/112053002/diff/40001/content/public/common/url_utils.h File content/public/common/url_utils.h (right): https://codereview.chromium.org/112053002/diff/40001/content/public/common/url_utils.h#newcode33 content/public/common/url_utils.h:33: CONTENT_EXPORT size_t MaxURLChars(); nit: usually getters have a Get ...
7 years ago (2013-12-11 17:23:31 UTC) #10
Kristian Monsen
Should have addressed all the comments, PTAL. https://codereview.chromium.org/112053002/diff/40001/content/public/common/content_constants.h File content/public/common/content_constants.h (left): https://codereview.chromium.org/112053002/diff/40001/content/public/common/content_constants.h#oldcode50 content/public/common/content_constants.h:50: CONTENT_EXPORT extern ...
7 years ago (2013-12-11 22:05:41 UTC) #11
Kristian Monsen
Need two more owner lgtm: jamesr for content/renderer sky for content/browser
7 years ago (2013-12-12 05:56:54 UTC) #12
sky
Is there a reason for a setter? Should Android just have a different size? https://codereview.chromium.org/112053002/diff/60001/content/public/common/url_utils.cc ...
7 years ago (2013-12-12 16:45:42 UTC) #13
Kristian Monsen
Sky: there is no define to separate between android WebView and android chrome, and we ...
7 years ago (2013-12-12 19:56:10 UTC) #14
sky
Assuming you address my previous nit, LGTM
7 years ago (2013-12-12 20:23:16 UTC) #15
jamesr
How would this work in a multi-process environment? What would propagate the limit to child ...
7 years ago (2013-12-12 21:46:53 UTC) #16
Kristian Monsen
On 2013/12/12 21:46:53, jamesr wrote: > How would this work in a multi-process environment? What ...
7 years ago (2013-12-12 21:52:39 UTC) #17
jamesr
It's not technically possible to share constants with child processes by setting statics and forking. ...
7 years ago (2013-12-13 01:02:01 UTC) #18
Kristian Monsen
On 2013/12/13 01:02:01, jamesr wrote: > It's not technically possible to share constants with child ...
7 years ago (2013-12-13 01:17:18 UTC) #19
Kristian Monsen
How does ContentClient work? It seems like that follows the same pattern with a global ...
7 years ago (2013-12-13 01:43:11 UTC) #20
jam
On 2013/12/13 01:43:11, Kristian Monsen wrote: > How does ContentClient work? It seems like that ...
7 years ago (2013-12-13 17:33:24 UTC) #21
Kristian Monsen
On 2013/12/13 17:33:24, jam wrote: > On 2013/12/13 01:43:11, Kristian Monsen wrote: > > How ...
7 years ago (2013-12-13 20:25:36 UTC) #22
Kristian Monsen
On 2013/12/13 20:25:36, Kristian Monsen wrote: > On 2013/12/13 17:33:24, jam wrote: > > On ...
7 years ago (2013-12-14 00:22:06 UTC) #23
jam
On 2013/12/14 00:22:06, Kristian Monsen wrote: > On 2013/12/13 20:25:36, Kristian Monsen wrote: > > ...
7 years ago (2013-12-14 01:13:20 UTC) #24
Kristian Monsen
jam: I updated with a checking for single process command line flag. Would you mind ...
7 years ago (2013-12-14 02:13:40 UTC) #25
jam
lgtm https://codereview.chromium.org/112053002/diff/310001/content/public/common/url_utils.cc File content/public/common/url_utils.cc (right): https://codereview.chromium.org/112053002/diff/310001/content/public/common/url_utils.cc#newcode44 content/public/common/url_utils.cc:44: // embedder nit: why wrap at less than ...
7 years ago (2013-12-16 17:40:36 UTC) #26
Kristian Monsen
Thank you! I will follow up with some testing and submit in an hour or ...
7 years ago (2013-12-16 18:27:39 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kristianm@chromium.org/112053002/330001
7 years ago (2013-12-16 19:54:17 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kristianm@chromium.org/112053002/330001
7 years ago (2013-12-16 23:27:17 UTC) #29
commit-bot: I haz the power
7 years ago (2013-12-16 23:42:58 UTC) #30
Message was sent while issue was closed.
Change committed as 241065

Powered by Google App Engine
This is Rietveld 408576698