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

Issue 543077: The search terms are escaped using + or %20 for space depending on whether re... (Closed)

Created:
10 years, 11 months ago by whywhat
Modified:
9 years, 7 months ago
Reviewers:
brettw, sky
CC:
chromium-reviews_googlegroups.com, darin (slow to review), ben+cc_chromium.org
Visibility:
Public.

Description

The search terms are escaped using + or %20 for space depending on whether replacement is in query part of the URL or not. Removed duplicate EscapeQueryParamValue functions without |use_plus| argument. BUG=24571 TEST=Verify that space is escaped as stated in description; see bug description for example with search on Wikipedia. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=36398

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -41 lines) Patch
M chrome/browser/dom_ui/history_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_updater.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/safe_browsing/protocol_manager.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_util.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/search_engines/template_url.cc View 1 2 3 2 chunks +19 lines, -4 lines 0 comments Download
M chrome/browser/search_engines/template_url_unittest.cc View 4 5 6 1 chunk +22 lines, -8 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/escape.h View 1 2 3 2 chunks +5 lines, -6 lines 0 comments Download
M net/base/escape.cc View 1 2 3 3 chunks +5 lines, -8 lines 0 comments Download
M net/base/escape_unittest.cc View 2 3 4 5 6 3 chunks +19 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
whywhat
Brett, I'm adding you as a reviewer because this change touches escape functions that your ...
10 years, 11 months ago (2010-01-15 13:38:22 UTC) #1
sky
The TemplateURL changes LGTM, but could you add a couple of tests for coverage of ...
10 years, 11 months ago (2010-01-15 16:39:03 UTC) #2
brettw
http://codereview.chromium.org/543077/diff/5002/5003 File net/base/escape.h (right): http://codereview.chromium.org/543077/diff/5002/5003#newcode125 net/base/escape.h:125: string16* escaped, bool use_plus); I'm not super excited about ...
10 years, 11 months ago (2010-01-15 17:54:50 UTC) #3
whywhat
On 2010/01/15 16:39:03, sky wrote: > The TemplateURL changes LGTM, but could you add a ...
10 years, 11 months ago (2010-01-15 18:13:17 UTC) #4
brettw
LGTM
10 years, 11 months ago (2010-01-15 18:14:20 UTC) #5
whywhat
10 years, 11 months ago (2010-01-15 18:15:03 UTC) #6
http://codereview.chromium.org/543077/diff/5002/5003
File net/base/escape.h (right):

http://codereview.chromium.org/543077/diff/5002/5003#newcode125
net/base/escape.h:125: string16* escaped, bool use_plus);
On 2010/01/15 17:54:50, brettw wrote:
> I'm not super excited about adding yet another overloaded version of this
> function (and the later one). It looks like its not used too many places. Can
> you just add "use_plus" to the previous one and update the callers?

Sure. Done.
> 
> The out param should be last, so use_plus should be the third argument.

Done.

Powered by Google App Engine
This is Rietveld 408576698