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

Issue 1920253002: Refactors parse_html_subset() into i18n_behavior. (Closed)

Created:
4 years, 8 months ago by Moe
Modified:
4 years, 7 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews, extensions-reviews_chromium.org, media-router+watch_chromium.org, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, pam+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, vitalyp+closure_chromium.org, dbeam+watch-settings_chromium.org, dbeam+watch-closure_chromium.org, stevenjb+watch-md-settings_chromium.org, jlklein+watch-closure_chromium.org, tommycli
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactors parse_html_subset() into i18n_behavior. R=dbeam@chromium.org BUG=605226 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/20bb518435ea84cea2584891f4bf2a4180814bf9 Cr-Commit-Position: refs/heads/master@{#392057}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed comments #

Patch Set 3 : Rebase #

Patch Set 4 : Whitelists <span> and exposes another function in I18nBehavior API #

Total comments: 4

Patch Set 5 : Addressed comments #

Total comments: 8

Patch Set 6 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -27 lines) Patch
M chrome/browser/resources/md_user_manager/compiled_resources2.gyp View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/resources/md_user_manager/create_profile.html View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/md_user_manager/create_profile.js View 1 2 3 4 5 2 chunks +38 lines, -2 lines 0 comments Download
M chrome/browser/resources/md_user_manager/supervised_user_create_confirm.html View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/resources/md_user_manager/supervised_user_create_confirm.js View 1 3 chunks +5 lines, -18 lines 0 comments Download
M ui/webui/resources/html/i18n_behavior.html View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/webui/resources/js/compiled_resources2.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M ui/webui/resources/js/i18n_behavior.js View 1 2 3 4 5 1 chunk +34 lines, -2 lines 0 comments Download
M ui/webui/resources/js/parse_html_subset.js View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (8 generated)
Moe
Hi Dan, please review this CL.
4 years, 8 months ago (2016-04-26 15:22:51 UTC) #1
Dan Beam
https://codereview.chromium.org/1920253002/diff/1/ui/webui/resources/js/i18n_behavior.js File ui/webui/resources/js/i18n_behavior.js (right): https://codereview.chromium.org/1920253002/diff/1/ui/webui/resources/js/i18n_behavior.js#newcode28 ui/webui/resources/js/i18n_behavior.js:28: opt_values.unshift(id); don't do this, opt_values is passed by reference ...
4 years, 8 months ago (2016-04-27 02:38:27 UTC) #2
Moe
https://codereview.chromium.org/1920253002/diff/1/ui/webui/resources/js/i18n_behavior.js File ui/webui/resources/js/i18n_behavior.js (right): https://codereview.chromium.org/1920253002/diff/1/ui/webui/resources/js/i18n_behavior.js#newcode28 ui/webui/resources/js/i18n_behavior.js:28: opt_values.unshift(id); On 2016/04/27 02:38:27, Dan Beam wrote: > don't ...
4 years, 7 months ago (2016-04-27 15:08:46 UTC) #3
Dan Beam
i'm fine with this, but is there any noticeable performance difference? it'd be nice to ...
4 years, 7 months ago (2016-05-03 04:25:18 UTC) #4
Moe
On 2016/05/03 04:25:18, Dan Beam wrote: > i'm fine with this, but is there any ...
4 years, 7 months ago (2016-05-03 18:15:12 UTC) #5
Dan Beam
i might be cool with is="action-link", but why can't we do this for the specific ...
4 years, 7 months ago (2016-05-03 23:23:18 UTC) #7
Moe
Dan, I replaced the previous patch with one that exposes another function in the i18n_behavior ...
4 years, 7 months ago (2016-05-04 14:32:10 UTC) #12
Dan Beam
https://codereview.chromium.org/1920253002/diff/80001/ui/webui/resources/js/i18n_behavior.js File ui/webui/resources/js/i18n_behavior.js (right): https://codereview.chromium.org/1920253002/diff/80001/ui/webui/resources/js/i18n_behavior.js#newcode59 ui/webui/resources/js/i18n_behavior.js:59: return parseHtmlSubset('<b>' + rawString + '</b>', what if opt_extraTags ...
4 years, 7 months ago (2016-05-04 16:02:35 UTC) #13
Moe
https://codereview.chromium.org/1920253002/diff/80001/ui/webui/resources/js/i18n_behavior.js File ui/webui/resources/js/i18n_behavior.js (right): https://codereview.chromium.org/1920253002/diff/80001/ui/webui/resources/js/i18n_behavior.js#newcode59 ui/webui/resources/js/i18n_behavior.js:59: return parseHtmlSubset('<b>' + rawString + '</b>', On 2016/05/04 16:02:35, ...
4 years, 7 months ago (2016-05-04 21:41:18 UTC) #14
Dan Beam
lgtm with very optional nits https://codereview.chromium.org/1920253002/diff/100001/chrome/browser/resources/md_user_manager/create_profile.js File chrome/browser/resources/md_user_manager/create_profile.js (right): https://codereview.chromium.org/1920253002/diff/100001/chrome/browser/resources/md_user_manager/create_profile.js#newcode413 chrome/browser/resources/md_user_manager/create_profile.js:413: return node.tagName == 'A' ...
4 years, 7 months ago (2016-05-05 16:43:36 UTC) #15
Moe
Thank you! https://codereview.chromium.org/1920253002/diff/100001/chrome/browser/resources/md_user_manager/create_profile.js File chrome/browser/resources/md_user_manager/create_profile.js (right): https://codereview.chromium.org/1920253002/diff/100001/chrome/browser/resources/md_user_manager/create_profile.js#newcode413 chrome/browser/resources/md_user_manager/create_profile.js:413: return node.tagName == 'A' && value != ...
4 years, 7 months ago (2016-05-06 14:24:59 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1920253002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1920253002/120001
4 years, 7 months ago (2016-05-06 14:25:14 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 7 months ago (2016-05-06 14:44:13 UTC) #20
commit-bot: I haz the power
4 years, 7 months ago (2016-05-06 14:45:29 UTC) #22
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/20bb518435ea84cea2584891f4bf2a4180814bf9
Cr-Commit-Position: refs/heads/master@{#392057}

Powered by Google App Engine
This is Rietveld 408576698