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

Issue 1112403006: Add a flag to the compiler for compiling polymer code. (Closed)

Created:
5 years, 7 months ago by Jeremy Klein
Modified:
5 years, 7 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews, khorimoto+watch-md-settings_chromium.org, michaelpg+watch-polymer_chromium.org, michaelpg+watch-md-settings_chromium.org, jhawkins+watch-md-settings_chromium.org, orenb+watch-md-settings_chromium.org, jlklein+watch-md-settings_chromium.org, oshima+watch_chromium.org, vitalyp+closure_chromium.org, stevenjb+watch-md-settings_chromium.org, dbeam+watch-closure_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a flag to the compiler for compiling polymer code. Note that I did not add the checkbox compiled_resources.gyp to third_party/closure_compiler/compiled_resources.gyp because there are still some errors to dig through. BUG=486240 Committed: https://crrev.com/0216cb3dd6369731c269304f04279914d0a39682 Cr-Commit-Position: refs/heads/master@{#329476}

Patch Set 1 #

Patch Set 2 : Propagate the polymer flag through targets #

Patch Set 3 : remove unneeded extern #

Patch Set 4 : Make the gyp more sane. #

Patch Set 5 : rebasage #

Patch Set 6 : small merge issue #

Patch Set 7 : Use an absolute path for the externs #

Total comments: 8

Patch Set 8 : Address dbeam's comments #

Total comments: 10

Patch Set 9 : Always include the Polymer check. #

Total comments: 6

Patch Set 10 : Remove the checkbox from default compiled_resources for now #

Patch Set 11 : Fixed the multi-source case. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -33 lines) Patch
M third_party/closure_compiler/compile.py View 1 2 3 4 5 6 7 8 9 10 6 chunks +54 lines, -25 lines 0 comments Download
A + ui/webui/resources/cr_elements/v0_8/cr_checkbox/compiled_resources.gyp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -8 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
Jeremy Klein
This depends on https://codereview.chromium.org/1136093004/ for the Polymer externs.
5 years, 7 months ago (2015-05-11 23:55:23 UTC) #2
Dan Beam
https://codereview.chromium.org/1112403006/diff/120001/third_party/closure_compiler/compile.py File third_party/closure_compiler/compile.py (right): https://codereview.chromium.org/1112403006/diff/120001/third_party/closure_compiler/compile.py#newcode60 third_party/closure_compiler/compile.py:60: "--extra_annotation_name=group", arguable that we should be doing: _POLYMER_ARGS = ...
5 years, 7 months ago (2015-05-12 01:09:06 UTC) #3
Dan Beam
https://codereview.chromium.org/1112403006/diff/120001/third_party/closure_compiler/compile.py File third_party/closure_compiler/compile.py (right): https://codereview.chromium.org/1112403006/diff/120001/third_party/closure_compiler/compile.py#newcode416 third_party/closure_compiler/compile.py:416: "../polymer/v0_8/components-chromium/polymer-externs/polymer.externs.js") 80 col wrap
5 years, 7 months ago (2015-05-12 01:10:58 UTC) #4
Dan Beam
https://codereview.chromium.org/1112403006/diff/120001/third_party/closure_compiler/compile.py File third_party/closure_compiler/compile.py (right): https://codereview.chromium.org/1112403006/diff/120001/third_party/closure_compiler/compile.py#newcode416 third_party/closure_compiler/compile.py:416: "../polymer/v0_8/components-chromium/polymer-externs/polymer.externs.js") i think you might also want to use ...
5 years, 7 months ago (2015-05-12 01:12:25 UTC) #5
Jeremy Klein
https://codereview.chromium.org/1112403006/diff/120001/third_party/closure_compiler/compile.py File third_party/closure_compiler/compile.py (right): https://codereview.chromium.org/1112403006/diff/120001/third_party/closure_compiler/compile.py#newcode60 third_party/closure_compiler/compile.py:60: "--extra_annotation_name=group", On 2015/05/12 01:09:06, Dan Beam wrote: > arguable ...
5 years, 7 months ago (2015-05-12 03:58:23 UTC) #6
Dan Beam
general question either of us should've asked beforehand: can we just turn on Polymer for ...
5 years, 7 months ago (2015-05-12 04:22:37 UTC) #7
Dan Beam
On 2015/05/12 04:22:37, Dan Beam wrote: > general question either of us should've asked beforehand: ...
5 years, 7 months ago (2015-05-12 04:32:49 UTC) #8
Jeremy Klein
https://codereview.chromium.org/1112403006/diff/140001/third_party/closure_compiler/compile.py File third_party/closure_compiler/compile.py (right): https://codereview.chromium.org/1112403006/diff/140001/third_party/closure_compiler/compile.py#newcode20 third_party/closure_compiler/compile.py:20: CURRENT_DIR = os.path.join(os.path.dirname(__file__)) On 2015/05/12 04:22:37, Dan Beam wrote: ...
5 years, 7 months ago (2015-05-12 04:47:49 UTC) #9
Dan Beam
lgtm https://codereview.chromium.org/1112403006/diff/160001/third_party/closure_compiler/compile.py File third_party/closure_compiler/compile.py (right): https://codereview.chromium.org/1112403006/diff/160001/third_party/closure_compiler/compile.py#newcode19 third_party/closure_compiler/compile.py:19: extra \n (\n\n between file-level globals) https://codereview.chromium.org/1112403006/diff/160001/third_party/closure_compiler/compile.py#newcode68 third_party/closure_compiler/compile.py:68: ...
5 years, 7 months ago (2015-05-12 04:55:55 UTC) #10
Jeremy Klein
Also fixed the --no-single-file case. PTAL https://codereview.chromium.org/1112403006/diff/160001/third_party/closure_compiler/compile.py File third_party/closure_compiler/compile.py (right): https://codereview.chromium.org/1112403006/diff/160001/third_party/closure_compiler/compile.py#newcode19 third_party/closure_compiler/compile.py:19: On 2015/05/12 04:55:55, ...
5 years, 7 months ago (2015-05-12 05:46:08 UTC) #11
Dan Beam
beautiful. lgtm
5 years, 7 months ago (2015-05-12 18:48:34 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1112403006/200001
5 years, 7 months ago (2015-05-12 20:29:15 UTC) #16
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 7 months ago (2015-05-12 20:38:28 UTC) #17
commit-bot: I haz the power
5 years, 7 months ago (2015-05-12 20:39:09 UTC) #18
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/0216cb3dd6369731c269304f04279914d0a39682
Cr-Commit-Position: refs/heads/master@{#329476}

Powered by Google App Engine
This is Rietveld 408576698