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

Issue 1238683003: Unpunycode search keywords and short names. (Closed)

Created:
5 years, 5 months ago by alshabalin
Modified:
5 years, 5 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org, felt
Base URL:
https://chromium.googlesource.com/chromium/src.git@lkgr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Unpunycode search keywords and short names. When automatically generating a new search engine, convert keywords and short names from punycode to unicode. BUG=510832 Committed: https://crrev.com/e6212ac6b82fe6e2d73cd1e112b016fa45343927 Cr-Commit-Position: refs/heads/master@{#340053}

Patch Set 1 #

Patch Set 2 : Rebased to origin/master. #

Total comments: 18

Patch Set 3 : Remove UTF-8 from source code, use std::string(). #

Total comments: 15

Patch Set 4 : Restrict IDN-decoding to keywords generated from URL; Use prefs::kAcceptLanguages for IDN-decoding #

Total comments: 13

Patch Set 5 : Fix comments, naming, code style. #

Total comments: 2

Patch Set 6 : Fix grammar. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -19 lines) Patch
M chrome/browser/renderer_context_menu/render_view_context_menu.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/search_engines/ui_thread_search_terms_data.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/search_engines/ui_thread_search_terms_data.cc View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/search_engines/search_engine_tab_helper.cc View 1 2 3 4 5 chunks +9 lines, -4 lines 0 comments Download
M components/search_engines/keyword_table.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M components/search_engines/search_terms_data.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M components/search_engines/search_terms_data.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M components/search_engines/template_url.h View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M components/search_engines/template_url.cc View 1 2 3 4 5 2 chunks +10 lines, -3 lines 0 comments Download
M components/search_engines/template_url_fetcher_unittest.cc View 1 2 3 3 chunks +19 lines, -0 lines 0 comments Download
M components/search_engines/template_url_parser.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M components/search_engines/template_url_service.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M components/search_engines/template_url_unittest.cc View 1 2 3 1 chunk +11 lines, -7 lines 0 comments Download
A components/test/data/search_engines/unicode_open_search.xml View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (8 generated)
alshabalin
5 years, 5 months ago (2015-07-14 12:05:42 UTC) #2
SteveT
LGTM for search engines - provided that there is another reviewer who understands the Punycode ...
5 years, 5 months ago (2015-07-14 13:33:31 UTC) #3
jochen (gone - plz use gerrit)
+pkasting because omnibox affected +felt because this might be security ux relevant
5 years, 5 months ago (2015-07-14 14:35:59 UTC) #5
Peter Kasting
Is there an associated BUG= here? https://codereview.chromium.org/1238683003/diff/20001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc File chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc (right): https://codereview.chromium.org/1238683003/diff/20001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc#newcode124 chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc:124: // Unpunycode short ...
5 years, 5 months ago (2015-07-14 18:05:33 UTC) #6
alshabalin
On 2015/07/14 18:05:33, Peter Kasting wrote: > Is there an associated BUG= here? Couldn't find ...
5 years, 5 months ago (2015-07-15 14:17:35 UTC) #7
alshabalin
https://codereview.chromium.org/1238683003/diff/20001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc File chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc (right): https://codereview.chromium.org/1238683003/diff/20001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc#newcode124 chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc:124: // Unpunycode short name and keyword. On 2015/07/14 18:05:33, ...
5 years, 5 months ago (2015-07-15 14:18:01 UTC) #8
alshabalin
https://codereview.chromium.org/1238683003/diff/20001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc File chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc (right): https://codereview.chromium.org/1238683003/diff/20001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc#newcode125 chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc:125: data.SetShortName(net::IDNToUnicode(parameters->name, "")); On 2015/07/14 18:05:33, Peter Kasting wrote: > ...
5 years, 5 months ago (2015-07-15 15:19:50 UTC) #9
felt
On 2015/07/15 14:17:35, alshabalin wrote: > On 2015/07/14 18:05:33, Peter Kasting wrote: > > Is ...
5 years, 5 months ago (2015-07-15 16:16:41 UTC) #10
Peter Kasting
https://codereview.chromium.org/1238683003/diff/20001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc File chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc (right): https://codereview.chromium.org/1238683003/diff/20001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc#newcode124 chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc:124: // Unpunycode short name and keyword. On 2015/07/15 at ...
5 years, 5 months ago (2015-07-15 21:19:12 UTC) #11
alshabalin
https://codereview.chromium.org/1238683003/diff/20001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc File chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc (right): https://codereview.chromium.org/1238683003/diff/20001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc#newcode124 chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc:124: // Unpunycode short name and keyword. On 2015/07/15 21:19:12, ...
5 years, 5 months ago (2015-07-16 15:13:07 UTC) #12
alshabalin
On 2015/07/15 16:16:41, felt wrote: > On 2015/07/15 14:17:35, alshabalin wrote: > > On 2015/07/14 ...
5 years, 5 months ago (2015-07-16 15:14:05 UTC) #13
felt
mgiuca, could you take a look at this please?
5 years, 5 months ago (2015-07-16 15:17:24 UTC) #16
Peter Kasting
https://codereview.chromium.org/1238683003/diff/20001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc File chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc (right): https://codereview.chromium.org/1238683003/diff/20001/chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc#newcode124 chrome/browser/extensions/api/search_engines_private/search_engines_private_api.cc:124: // Unpunycode short name and keyword. On 2015/07/16 at ...
5 years, 5 months ago (2015-07-16 19:16:27 UTC) #17
Matt Giuca
Hi, thanks for including me, felt@. I have a problem with *some* of the decodings ...
5 years, 5 months ago (2015-07-17 04:13:11 UTC) #18
Peter Kasting
I'm probably not as convinced of the invalidity of aggressive un-punycoding as mgiuca is, but ...
5 years, 5 months ago (2015-07-17 05:12:54 UTC) #19
alshabalin
On 2015/07/17 04:13:11, Matt Giuca wrote: > Hi, thanks for including me, felt@. > > ...
5 years, 5 months ago (2015-07-17 09:39:57 UTC) #20
Matt Giuca
On 2015/07/17 09:39:57, alshabalin wrote: > > About #1: My initial thought was that this ...
5 years, 5 months ago (2015-07-20 01:49:03 UTC) #22
alshabalin
https://codereview.chromium.org/1238683003/diff/20001/components/search_engines/template_url.cc File components/search_engines/template_url.cc (right): https://codereview.chromium.org/1238683003/diff/20001/components/search_engines/template_url.cc#newcode1221 components/search_engines/template_url.cc:1221: base::string16 keyword(net::StripWWW(net::IDNToUnicode(url.host(), ""))); On 2015/07/15 21:19:12, Peter Kasting wrote: ...
5 years, 5 months ago (2015-07-20 14:06:38 UTC) #23
Peter Kasting
Miguel, in fairness, are other browsers really a factor here? Chrome is more aggressive than ...
5 years, 5 months ago (2015-07-20 16:47:17 UTC) #24
Peter Kasting
On 2015/07/20 at 16:47:17, Peter Kasting wrote: > Miguel, Er, Matt. I don't know why ...
5 years, 5 months ago (2015-07-20 16:48:13 UTC) #25
Peter Kasting
https://codereview.chromium.org/1238683003/diff/60001/chrome/browser/search_engines/ui_thread_search_terms_data.cc File chrome/browser/search_engines/ui_thread_search_terms_data.cc (right): https://codereview.chromium.org/1238683003/diff/60001/chrome/browser/search_engines/ui_thread_search_terms_data.cc#newcode188 chrome/browser/search_engines/ui_thread_search_terms_data.cc:188: return profile_->GetPrefs()->GetString(prefs::kAcceptLanguages); Nit: Shorter: return profile_ ? profile_->GetPrefs()->GetString(prefs::kAcceptLanguages) : ...
5 years, 5 months ago (2015-07-20 19:30:52 UTC) #27
Matt Giuca
On 2015/07/20 16:47:17, Peter Kasting wrote: > Miguel, in fairness, are other browsers really a ...
5 years, 5 months ago (2015-07-21 00:49:39 UTC) #28
alshabalin
https://codereview.chromium.org/1238683003/diff/60001/chrome/browser/search_engines/ui_thread_search_terms_data.cc File chrome/browser/search_engines/ui_thread_search_terms_data.cc (right): https://codereview.chromium.org/1238683003/diff/60001/chrome/browser/search_engines/ui_thread_search_terms_data.cc#newcode188 chrome/browser/search_engines/ui_thread_search_terms_data.cc:188: return profile_->GetPrefs()->GetString(prefs::kAcceptLanguages); On 2015/07/20 19:30:51, Peter Kasting wrote: > ...
5 years, 5 months ago (2015-07-21 08:44:19 UTC) #29
Peter Kasting
LGTM https://codereview.chromium.org/1238683003/diff/80001/components/search_engines/template_url.cc File components/search_engines/template_url.cc (right): https://codereview.chromium.org/1238683003/diff/80001/components/search_engines/template_url.cc#newcode1221 components/search_engines/template_url.cc:1221: // making it look like Unicode hostname the ...
5 years, 5 months ago (2015-07-21 17:34:09 UTC) #30
jochen (gone - plz use gerrit)
lgtm
5 years, 5 months ago (2015-07-22 09:36:27 UTC) #31
alshabalin
https://codereview.chromium.org/1238683003/diff/80001/components/search_engines/template_url.cc File components/search_engines/template_url.cc (right): https://codereview.chromium.org/1238683003/diff/80001/components/search_engines/template_url.cc#newcode1221 components/search_engines/template_url.cc:1221: // making it look like Unicode hostname the user ...
5 years, 5 months ago (2015-07-22 14:31:17 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1238683003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1238683003/100001
5 years, 5 months ago (2015-07-23 06:39:39 UTC) #35
commit-bot: I haz the power
The author alshabalin@yandex-team.ru has not signed Google Contributor License Agreement. Please visit https://cla.developers.google.com to sign ...
5 years, 5 months ago (2015-07-23 06:39:44 UTC) #36
commit-bot: I haz the power
The author alshabalin@yandex-team.ru has not signed Google Contributor License Agreement. Please visit https://cla.developers.google.com to sign ...
5 years, 5 months ago (2015-07-23 07:01:55 UTC) #37
commit-bot: I haz the power
The author alshabalin@yandex-team.ru has not signed Google Contributor License Agreement. Please visit https://cla.developers.google.com to sign ...
5 years, 5 months ago (2015-07-23 07:31:47 UTC) #38
commit-bot: I haz the power
The author alshabalin@yandex-team.ru has not signed Google Contributor License Agreement. Please visit https://cla.developers.google.com to sign ...
5 years, 5 months ago (2015-07-23 08:02:04 UTC) #39
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 5 months ago (2015-07-23 08:03:12 UTC) #40
commit-bot: I haz the power
5 years, 5 months ago (2015-07-23 08:04:04 UTC) #41
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e6212ac6b82fe6e2d73cd1e112b016fa45343927
Cr-Commit-Position: refs/heads/master@{#340053}

Powered by Google App Engine
This is Rietveld 408576698