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

Issue 1088523002: Fixed ExtractSearchTermsFromURL for search engines with encoding != "UTF-8". (Closed)

Created:
5 years, 8 months ago by Vitaly Baranov
Modified:
5 years, 8 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixed ExtractSearchTermsFromURL for search engines with encoding != "UTF-8". Some search engines specify non UTF-8 input encoding, e.g. the "mail.ru" engine specifies "windows-1251". After this patch the TemplateURL::ExtractSearchTermsFromURL function works correctly in such cases. R=pkasting@chromium.org Committed: https://crrev.com/27804d10158be631d7519099cdd01480339db175 Cr-Commit-Position: refs/heads/master@{#325220}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Escaping is used instead of writing non-latin characters in unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -10 lines) Patch
M components/search_engines/template_url.cc View 4 chunks +10 lines, -10 lines 0 comments Download
M components/search_engines/template_url_unittest.cc View 1 1 chunk +75 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
Vitaly Baranov
5 years, 8 months ago (2015-04-13 13:28:04 UTC) #1
Peter Kasting
https://codereview.chromium.org/1088523002/diff/1/components/search_engines/template_url_unittest.cc File components/search_engines/template_url_unittest.cc (right): https://codereview.chromium.org/1088523002/diff/1/components/search_engines/template_url_unittest.cc#newcode1145 components/search_engines/template_url_unittest.cc:1145: TEST_F(TemplateURLTest, ExtractSearchTermsFromURL_CyrillicInWindows1251) { Nit: I would name this "ExtraceSearchTermsFromNonUTF8URL" ...
5 years, 8 months ago (2015-04-13 18:59:48 UTC) #2
Vitaly Baranov
https://codereview.chromium.org/1088523002/diff/1/components/search_engines/template_url_unittest.cc File components/search_engines/template_url_unittest.cc (right): https://codereview.chromium.org/1088523002/diff/1/components/search_engines/template_url_unittest.cc#newcode1145 components/search_engines/template_url_unittest.cc:1145: TEST_F(TemplateURLTest, ExtractSearchTermsFromURL_CyrillicInWindows1251) { On 2015/04/13 18:59:48, Peter Kasting wrote: ...
5 years, 8 months ago (2015-04-14 13:26:15 UTC) #3
Peter Kasting
LGTM
5 years, 8 months ago (2015-04-14 20:52:25 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1088523002/20001
5 years, 8 months ago (2015-04-15 07:47:49 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-04-15 10:54:50 UTC) #7
commit-bot: I haz the power
5 years, 8 months ago (2015-04-15 10:55:42 UTC) #8
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/27804d10158be631d7519099cdd01480339db175
Cr-Commit-Position: refs/heads/master@{#325220}

Powered by Google App Engine
This is Rietveld 408576698