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

Issue 555012: Removed restriction for {} so that javascript blocks can be used in the url.... (Closed)

Created:
10 years, 11 months ago by whywhat
Modified:
9 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews_googlegroups.com, ben+cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Removed restriction for {} so that javascript blocks can be used in the url. Added unittests for TemplateURLRef::ParseParameter and TemplateURLRef::ParseURL methods. BUG=2238 TEST=Try adding urls with different combinations of {}, they all should work. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=36743

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -15 lines) Patch
M chrome/browser/search_engines/template_url.h View 1 2 4 chunks +15 lines, -4 lines 0 comments Download
M chrome/browser/search_engines/template_url.cc View 3 chunks +19 lines, -10 lines 0 comments Download
M chrome/browser/search_engines/template_url_unittest.cc View 1 2 2 chunks +70 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
whywhat
10 years, 11 months ago (2010-01-20 21:00:54 UTC) #1
sky
LGTM http://codereview.chromium.org/555012/diff/1/2 File chrome/browser/search_engines/template_url_unittest.cc (right): http://codereview.chromium.org/555012/diff/1/2#newcode440 chrome/browser/search_engines/template_url_unittest.cc:440: EXPECT_EQ(L"", parsed_url); nit: L"" -> std::wstring() here and ...
10 years, 11 months ago (2010-01-20 21:37:23 UTC) #2
whywhat
10 years, 11 months ago (2010-01-21 04:59:29 UTC) #3
Will commit as soon as trybots succeed

http://codereview.chromium.org/555012/diff/1/2
File chrome/browser/search_engines/template_url_unittest.cc (right):

http://codereview.chromium.org/555012/diff/1/2#newcode440
chrome/browser/search_engines/template_url_unittest.cc:440: EXPECT_EQ(L"",
parsed_url);
On 2010/01/20 21:37:24, sky wrote:
> nit: L"" -> std::wstring() here and in other places

Done.

http://codereview.chromium.org/555012/diff/1/2#newcode482
chrome/browser/search_engines/template_url_unittest.cc:482: 
On 2010/01/20 21:37:24, sky wrote:
> nit: nuke this line

Done.

Powered by Google App Engine
This is Rietveld 408576698