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

Issue 2123983003: PDF: Replace usage of i18nTemplate with Polymer data binding (Closed)

Created:
4 years, 5 months ago by tsergeant
Modified:
4 years, 5 months ago
Reviewers:
raymes, Dan Beam
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, arv+watch_chromium.org, dcheng
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PDF: Replace usage of i18nTemplate with Polymer data binding i18n_template.js is deprecated, and is built on top of a deprecated platform feature. The replacement for it (ReplaceTemplateExpresssions) is not available for component extensions. This CL replaces all usage of i18nTemplate in the PDF viewer with Polymer data binding, which works sufficiently well since there's no complicated l10n in the PDF viewer. BUG=621736 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/6780c776212ce304bb05dbf60b9ced28a89fb7c8 Cr-Commit-Position: refs/heads/master@{#404796}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Tweak comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -31 lines) Patch
M chrome/browser/resources/pdf/elements/viewer-error-screen/viewer-error-screen.html View 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/resources/pdf/elements/viewer-error-screen/viewer-error-screen.js View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/resources/pdf/elements/viewer-page-selector/viewer-page-selector.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/pdf/elements/viewer-page-selector/viewer-page-selector.js View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/resources/pdf/elements/viewer-password-screen/viewer-password-screen.html View 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/resources/pdf/elements/viewer-password-screen/viewer-password-screen.js View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/resources/pdf/elements/viewer-pdf-toolbar/viewer-pdf-toolbar.html View 1 chunk +9 lines, -5 lines 0 comments Download
M chrome/browser/resources/pdf/elements/viewer-pdf-toolbar/viewer-pdf-toolbar.js View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/pdf/elements/viewer-toolbar-dropdown/viewer-toolbar-dropdown.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/pdf/elements/viewer-zoom-toolbar/viewer-zoom-toolbar.js View 1 2 chunks +11 lines, -8 lines 0 comments Download
M chrome/browser/resources/pdf/index.html View 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/resources/pdf/pdf.js View 1 chunk +7 lines, -3 lines 0 comments Download

Messages

Total messages: 21 (9 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2123983003/20001
4 years, 5 months ago (2016-07-07 05:57:09 UTC) #4
tsergeant
PTAL
4 years, 5 months ago (2016-07-07 05:58:46 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-07 06:30:49 UTC) #8
raymes
lgtm https://codereview.chromium.org/2123983003/diff/20001/chrome/browser/resources/pdf/elements/viewer-zoom-toolbar/viewer-zoom-toolbar.js File chrome/browser/resources/pdf/elements/viewer-zoom-toolbar/viewer-zoom-toolbar.js (right): https://codereview.chromium.org/2123983003/diff/20001/chrome/browser/resources/pdf/elements/viewer-zoom-toolbar/viewer-zoom-toolbar.js#newcode30 chrome/browser/resources/pdf/elements/viewer-zoom-toolbar/viewer-zoom-toolbar.js:30: * Change button tooltips to match any changes ...
4 years, 5 months ago (2016-07-12 05:21:50 UTC) #9
tsergeant
https://codereview.chromium.org/2123983003/diff/20001/chrome/browser/resources/pdf/elements/viewer-zoom-toolbar/viewer-zoom-toolbar.js File chrome/browser/resources/pdf/elements/viewer-zoom-toolbar/viewer-zoom-toolbar.js (right): https://codereview.chromium.org/2123983003/diff/20001/chrome/browser/resources/pdf/elements/viewer-zoom-toolbar/viewer-zoom-toolbar.js#newcode30 chrome/browser/resources/pdf/elements/viewer-zoom-toolbar/viewer-zoom-toolbar.js:30: * Change button tooltips to match any changes to ...
4 years, 5 months ago (2016-07-12 06:11:39 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2123983003/40001
4 years, 5 months ago (2016-07-12 06:12:59 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 5 months ago (2016-07-12 07:47:37 UTC) #14
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/6780c776212ce304bb05dbf60b9ced28a89fb7c8 Cr-Commit-Position: refs/heads/master@{#404796}
4 years, 5 months ago (2016-07-12 07:49:14 UTC) #16
Dan Beam
yay, another way to do strings in webui!
4 years, 5 months ago (2016-07-12 19:32:46 UTC) #18
chromium-reviews
Yeah =( I looked into using app-localize-behavior and it pulls in some extra dependencies and ...
4 years, 5 months ago (2016-07-12 23:35:12 UTC) #19
Dan Beam
On 2016/07/12 23:35:12, chromium-reviews wrote: > Yeah =( > > I looked into using app-localize-behavior ...
4 years, 5 months ago (2016-07-13 02:41:36 UTC) #20
tsergeant
4 years, 5 months ago (2016-07-13 07:31:08 UTC) #21
Message was sent while issue was closed.
On 2016/07/13 02:41:36, Dan Beam wrote:
> On 2016/07/12 23:35:12, chromium-reviews wrote:
> > Yeah =(
> > 
> > I looked into using app-localize-behavior
> 
> what about I18nBehavior?

Eugh, I didn't realise that existed >.> . We probably could switch to that, but
I don't think there's any particular need to change.

Powered by Google App Engine
This is Rietveld 408576698