New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 632206 link

Starred by 7 users

Issue metadata

Status: Fixed
Owner:
Closed: Oct 10
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 1
Type: Bug



Sign in to add a comment

Closure Compilation builders need to move to GN

Project Member Reported by dpranke@chromium.org, Jul 27 2016

Issue description

Apparently we don't have a tracking bug for this, but GYP is about to be turned off and we need to figure out how to migrate the Closure Compilation builders to GN as soon as possible ...

 
... or, they can just break when people decide to delete the compiled_resources.gyp files because they don't want to have to list these files in two different build systems.

Comment 2 by dbeam@chromium.org, Aug 8 2016

Cc: aber...@chromium.org
Yes. we (Chromecast team) is blocked by this to fully moved to GN
@gfhuang - in what way are you blocked by this?
Chromecast has some internal .js files that we used to compile with the third_party/closure_compiler/compile_js.gypi target.

This was primarily used for error checking, since we didn't actually ship the compiled versions.

But there seems to be no GN equivalent for that target yet, so we are missing that functionality (which was very helpful for catching a variety of bugs).

It was useful enough the developers still keep an old checkout around so they could run the gyp rule to compile the js files with all depends and externs and such properly.

You shouldn't need to keep an old checkout around for this; the closure compilation commands should still run fine?
Oops, sorry, I was unclear. Chromecast doesn't support GYP internally anymore; we got rid of all our gyp files and nobody builds anything with gyp. So devs would keep an old Chromecast project checkout, which still has the gyp files + support in it in order to do the compile via the compile_js.gypi helper.

We have a rule now that does something similar to //ios/web/js_compile:js_compile_checked template (but with the bundling part); so we can compile/check files individually.

We just don't get the depends functionality that the compile_js.gypi gives, which I think is needed to properly do a lot of the type checking if files are referencing each other?
sounds like you shouldn't have deleted those files yet, then ;).

More seriously, I think aberent@ we'll probably have this working w/ GN soon.

Comment 9 by dbeam@chromium.org, Aug 19 2016

Cc: -aber...@chromium.org dbeam@chromium.org
Owner: aber...@chromium.org
:) yeeeeah, we were very excited to delete our GYP files and move to GN, and there were some casualties

Looking forward for the GN solution
Cc: sky@chromium.org
Project Member

Comment 12 by bugdroid1@chromium.org, Sep 2 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/2efb0fa36b8631044419c1a60a72452bbb24dfe1

commit 2efb0fa36b8631044419c1a60a72452bbb24dfe1
Author: Dan Beam <dbeam@chromium.org>
Date: Fri Sep 02 01:26:01 2016

Re-instate ui/*compiled_resources*.gyp files

R=fukino@chromium.org
TBR=bshe@chromium.org
BUG= 632206 

Review URL: https://codereview.chromium.org/2289303007 .

Cr-Commit-Position: refs/heads/master@{#416155}

[add] https://crrev.com/2efb0fa36b8631044419c1a60a72452bbb24dfe1/ui/file_manager/audio_player/elements/compiled_resources2.gyp
[add] https://crrev.com/2efb0fa36b8631044419c1a60a72452bbb24dfe1/ui/file_manager/audio_player/js/compiled_resources.gyp
[add] https://crrev.com/2efb0fa36b8631044419c1a60a72452bbb24dfe1/ui/file_manager/audio_player/js/compiled_resources2.gyp
[add] https://crrev.com/2efb0fa36b8631044419c1a60a72452bbb24dfe1/ui/file_manager/compiled_resources2.gyp
[add] https://crrev.com/2efb0fa36b8631044419c1a60a72452bbb24dfe1/ui/file_manager/externs/compiled_resources2.gyp
[add] https://crrev.com/2efb0fa36b8631044419c1a60a72452bbb24dfe1/ui/file_manager/file_manager/background/js/compiled_resources.gyp
[add] https://crrev.com/2efb0fa36b8631044419c1a60a72452bbb24dfe1/ui/file_manager/file_manager/background/js/compiled_resources2.gyp
[add] https://crrev.com/2efb0fa36b8631044419c1a60a72452bbb24dfe1/ui/file_manager/file_manager/common/js/compiled_resources2.gyp
[add] https://crrev.com/2efb0fa36b8631044419c1a60a72452bbb24dfe1/ui/file_manager/file_manager/foreground/elements/compiled_resources2.gyp
[add] https://crrev.com/2efb0fa36b8631044419c1a60a72452bbb24dfe1/ui/file_manager/file_manager/foreground/js/compiled_resources.gyp
[add] https://crrev.com/2efb0fa36b8631044419c1a60a72452bbb24dfe1/ui/file_manager/file_manager/foreground/js/compiled_resources2.gyp
[add] https://crrev.com/2efb0fa36b8631044419c1a60a72452bbb24dfe1/ui/file_manager/file_manager/foreground/js/metadata/compiled_resources.gyp
[add] https://crrev.com/2efb0fa36b8631044419c1a60a72452bbb24dfe1/ui/file_manager/file_manager/foreground/js/metadata/compiled_resources2.gyp
[add] https://crrev.com/2efb0fa36b8631044419c1a60a72452bbb24dfe1/ui/file_manager/file_manager/foreground/js/ui/compiled_resources2.gyp
[add] https://crrev.com/2efb0fa36b8631044419c1a60a72452bbb24dfe1/ui/file_manager/gallery/js/compiled_resources.gyp
[add] https://crrev.com/2efb0fa36b8631044419c1a60a72452bbb24dfe1/ui/file_manager/gallery/js/compiled_resources2.gyp
[add] https://crrev.com/2efb0fa36b8631044419c1a60a72452bbb24dfe1/ui/file_manager/gallery/js/image_editor/compiled_resources2.gyp
[add] https://crrev.com/2efb0fa36b8631044419c1a60a72452bbb24dfe1/ui/file_manager/image_loader/compiled_resources.gyp
[add] https://crrev.com/2efb0fa36b8631044419c1a60a72452bbb24dfe1/ui/file_manager/image_loader/compiled_resources2.gyp
[add] https://crrev.com/2efb0fa36b8631044419c1a60a72452bbb24dfe1/ui/file_manager/video_player/js/cast/compiled_resources2.gyp
[add] https://crrev.com/2efb0fa36b8631044419c1a60a72452bbb24dfe1/ui/file_manager/video_player/js/compiled_resources.gyp
[add] https://crrev.com/2efb0fa36b8631044419c1a60a72452bbb24dfe1/ui/file_manager/video_player/js/compiled_resources2.gyp
[add] https://crrev.com/2efb0fa36b8631044419c1a60a72452bbb24dfe1/ui/keyboard/resources/compiled_resources.gyp

Cc: aber...@chromium.org
Owner: dpranke@chromium.org
I will take ownership of this now that I have some cycles, and aberent@ and dbeam@ can move into more "advisory" roles :).
Project Member

Comment 14 by bugdroid1@chromium.org, Sep 21 2016

Labels: -Pri-1 Pri-2
Update: we still need to do this, and I still haven't gotten to it. I'm downgrading this to P2, but that doesn't mean I think it's actually any less important, rather that I just set the priority wrong initially and that I have other things that I need to prioritize higher.

If someone else wants to claim this, that's certainly fine by me :).
Labels: -Pri-2 Pri-3
Owner: ----
Status: Available (was: Assigned)
I think I need to let this go for now, and see if someone else wants to work on this?

Comment 17 by dbeam@chromium.org, Apr 18 2017

Owner: damargulis@chromium.org
Status: Started (was: Available)
Project Member

Comment 18 by bugdroid1@chromium.org, Apr 21 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/5c5337d8b474a6d07320536d0bab8bfbf548c219

commit 5c5337d8b474a6d07320536d0bab8bfbf548c219
Author: damargulis <damargulis@chromium.org>
Date: Fri Apr 21 22:36:08 2017

Create js_library and js_binary templates for closure compiling.

This creates the js_library and js_binary templates to be used within
chromium.  These templates simulate their matching partners in Blaze.
The js_library template is used to create an ordering for .js files.
The js_binary template is used to compile .js files and js_library targets.

BUG= 632206 
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2800833004
Cr-Commit-Position: refs/heads/master@{#466471}

[modify] https://crrev.com/5c5337d8b474a6d07320536d0bab8bfbf548c219/third_party/closure_compiler/compile2.py
[add] https://crrev.com/5c5337d8b474a6d07320536d0bab8bfbf548c219/third_party/closure_compiler/compile_js.gni
[add] https://crrev.com/5c5337d8b474a6d07320536d0bab8bfbf548c219/third_party/closure_compiler/js_binary.py
[add] https://crrev.com/5c5337d8b474a6d07320536d0bab8bfbf548c219/third_party/closure_compiler/js_library.py

What, if anything, is left to do here?
convert all compiled_resources{,2}.gyp to gn
Project Member

Comment 21 by bugdroid1@chromium.org, May 15 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/61bf88e4cf6b88a21119affee9bd1431769382f0

commit 61bf88e4cf6b88a21119affee9bd1431769382f0
Author: Mike Bjorge <mbjorge@chromium.org>
Date: Mon May 15 21:00:40 2017

Fix js_binary so compile failures result in ninja failures.

The js_binary.py script needs to forward the returncode from the
compiler.jar execution so that ninja knows when it failed. Also, dump
out the errors when the command fails so users can see what went wrong.

BUG= 632206 
TEST=add intentinoal syntax errors to a js_binary target and try to
build it.

Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I677f66d1053cb9c232b14fe8b8195b340aa05be6
Reviewed-on: https://chromium-review.googlesource.com/505391
Reviewed-by: Dan Beam <dbeam@chromium.org>
Commit-Queue: Mike Bjorge <mbjorge@chromium.org>
Cr-Commit-Position: refs/heads/master@{#471897}
[modify] https://crrev.com/61bf88e4cf6b88a21119affee9bd1431769382f0/third_party/closure_compiler/js_binary.py

Cc: damargulis@chromium.org dpa...@chromium.org
Owner: calamity@chromium.org
Hey, I'm itching to take a crack at this. Let me know if someone is already actively working on this.

Comment 23 by mbjorge@google.com, Sep 14 2017

sgtm; damargulis's internship ended back in April, so I don't think he's working on it :)
Please do!
While you are at it, it would be nice to figure out if the recently added js_library GN rule could be leveraged, see [1]

[1] https://cs.chromium.org/chromium/src/third_party/closure_compiler/compile_js.gni?type=cs&q=js_library&sq=package:chromium&l=34.
I've looked at this a bit, js_library doesn't compile every single node in the dependency tree independently like the current gyp system does. I'm not even sure if this is something that we want to keep.

e.g We have app.js that depends on sidebar.js, we'll compile sidebar.js by itself, then app.js with sidebar.js.

This ensures that each library's dependencies are correctly listed, but I'm not sure if this is worth the n^2 behavior of the Closure build.

Any thoughts?
I agree that the n^2 behavior is not desired. I have documented this in an upcoming document about various WebUI issues that I consider important to fix in the near future.

I understand the minor side-benefit of ensuring that each library has the correct dependencies listed, but I don't think this is as important, especially with the coming of ES6 modules (already enabled by default on M61).

For example the TypeScript compiler will complain when a file is using a module that has not directly imported, even if a single invocation of TSC is occurring AND some other file is transitively importing the missing module. Hoping that the JSC will have same behavior with ES6 modules, although I have not tested this.
Project Member

Comment 28 by bugdroid1@chromium.org, Oct 26 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/5bf7d183c517c2aedb488faf9bce2b7dc382b71a

commit 5bf7d183c517c2aedb488faf9bce2b7dc382b71a
Author: Christopher Lam <calamity@chromium.org>
Date: Thu Oct 26 02:47:05 2017

Generate BUILD.gn for Polymer Closure Compilation.

This CL adds a script to generate BUILD.gn files for Polymer elements
which will be used as compilation dependencies for a Closure build
target.

Bug:  632206 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I0a9f016cd7a6005ea5b42bddb8309e673a6c7fe9
Reviewed-on: https://chromium-review.googlesource.com/730023
Commit-Queue: calamity <calamity@chromium.org>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#511713}
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/iron-a11y-announcer/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/iron-a11y-keys-behavior/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/iron-a11y-keys/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/iron-autogrow-textarea/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/iron-behaviors/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/iron-checked-element-behavior/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/iron-collapse/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/iron-dropdown/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/iron-fit-behavior/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/iron-form-element-behavior/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/iron-icon/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/iron-iconset-svg/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/iron-input/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/iron-list/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/iron-location/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/iron-media-query/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/iron-menu-behavior/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/iron-meta/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/iron-overlay-behavior/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/iron-pages/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/iron-range-behavior/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/iron-resizable-behavior/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/iron-scroll-target-behavior/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/iron-scroll-threshold/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/iron-selector/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/iron-validatable-behavior/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/neon-animation/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/neon-animation/animations/BUILD.gn
[delete] https://crrev.com/6da3cacee4a16de1a42b2ed424e763ed4bd476b1/third_party/polymer/v1_0/components-chromium/neon-animation/guides/compiled_resources2.gyp
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/paper-behaviors/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/paper-button/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/paper-checkbox/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/paper-fab/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/paper-icon-button/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/paper-input/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/paper-item/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/paper-listbox/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/paper-material/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/paper-menu/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/paper-progress/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/paper-radio-button/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/paper-radio-group/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/paper-ripple/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/paper-slider/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/paper-spinner/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/paper-tabs/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/paper-toggle-button/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/components-chromium/paper-tooltip/BUILD.gn
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/generate_gn.sh
[modify] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/reproduce.sh
[modify] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/third_party/polymer/v1_0/rsync_exclude.txt
[add] https://crrev.com/5bf7d183c517c2aedb488faf9bce2b7dc382b71a/tools/polymer/generate_gn.py

Project Member

Comment 29 by bugdroid1@chromium.org, Nov 3 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/997fd81a94066f9d6211c235bae554470da990ab

commit 997fd81a94066f9d6211c235bae554470da990ab
Author: Christopher Lam <calamity@chromium.org>
Date: Fri Nov 03 03:42:40 2017

Add GN closure compilation for chromeos login.

This CL modifies the chromeos login closure compilation to use GN and
run on the main linux_chromium_rel_ng builder. The compilation can
be run locally by building the webui_closure_compile target.

Bug:  632206 
TBR: thakis@chromium.org
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I9d61a132bcfaae43e62525a8a2b51a372b0f0d99
Reviewed-on: https://chromium-review.googlesource.com/706880
Commit-Queue: calamity <calamity@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#513667}
[modify] https://crrev.com/997fd81a94066f9d6211c235bae554470da990ab/BUILD.gn
[add] https://crrev.com/997fd81a94066f9d6211c235bae554470da990ab/chrome/browser/resources/chromeos/login/BUILD.gn
[modify] https://crrev.com/997fd81a94066f9d6211c235bae554470da990ab/third_party/closure_compiler/closure_args.gni
[modify] https://crrev.com/997fd81a94066f9d6211c235bae554470da990ab/third_party/closure_compiler/compile_js.gni
[modify] https://crrev.com/997fd81a94066f9d6211c235bae554470da990ab/third_party/closure_compiler/js_binary.py
[modify] https://crrev.com/997fd81a94066f9d6211c235bae554470da990ab/third_party/closure_compiler/js_library.py
[add] https://crrev.com/997fd81a94066f9d6211c235bae554470da990ab/third_party/jstemplate/BUILD.gn
[add] https://crrev.com/997fd81a94066f9d6211c235bae554470da990ab/ui/webui/resources/cr_elements/chromeos/cr_picture/BUILD.gn
[add] https://crrev.com/997fd81a94066f9d6211c235bae554470da990ab/ui/webui/resources/js/BUILD.gn

Project Member

Comment 30 by bugdroid1@chromium.org, Jan 23 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/488e9ef26e7e265f627b3db349ad4440b4575e93

commit 488e9ef26e7e265f627b3db349ad4440b4575e93
Author: Christopher Lam <calamity@chromium.org>
Date: Tue Jan 23 05:00:58 2018

Compile webui_closure_compile target on all desktop platforms.

This CL adds the webui_closure_compile target to all desktop platforms.
It was previously only run on platforms where "all" was the target but
some bots such as linux-chromeos-rel used "gn_all".

Bug:  632206 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: If4d000ab1e9d8c2b0fe999c614277a6a1e4a95e8
Reviewed-on: https://chromium-review.googlesource.com/852604
Commit-Queue: calamity <calamity@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#531156}
[modify] https://crrev.com/488e9ef26e7e265f627b3db349ad4440b4575e93/BUILD.gn

Project Member

Comment 31 by bugdroid1@chromium.org, Feb 15 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/d36a12702a0e8d4b20f6c1780b954274650be96e

commit d36a12702a0e8d4b20f6c1780b954274650be96e
Author: Roman Sorokin <rsorokin@chromium.org>
Date: Thu Feb 15 15:21:17 2018

Revert "Compile webui_closure_compile target on all desktop platforms."

This reverts commit 488e9ef26e7e265f627b3db349ad4440b4575e93.

Reason for revert: It blocks landing of CL:893564. As suggested by dpapad@ in the email thread I revert it and let calamity@ fix it.

Original change's description:
> Compile webui_closure_compile target on all desktop platforms.
> 
> This CL adds the webui_closure_compile target to all desktop platforms.
> It was previously only run on platforms where "all" was the target but
> some bots such as linux-chromeos-rel used "gn_all".
> 
> Bug:  632206 
> Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
> Change-Id: If4d000ab1e9d8c2b0fe999c614277a6a1e4a95e8
> Reviewed-on: https://chromium-review.googlesource.com/852604
> Commit-Queue: calamity <calamity@chromium.org>
> Reviewed-by: Dirk Pranke <dpranke@chromium.org>
> Reviewed-by: Kenneth Russell <kbr@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#531156}

TBR=calamity@chromium.org,dpranke@chromium.org,kbr@chromium.org

# Not skipping CQ checks because original CL landed > 1 day ago.

Bug:  632206 
Change-Id: I6b72d4a28ae4fc3c4fafb0e307eff05edfa46884
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Reviewed-on: https://chromium-review.googlesource.com/921202
Reviewed-by: Roman Sorokin <rsorokin@chromium.org>
Commit-Queue: Roman Sorokin <rsorokin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#537019}
[modify] https://crrev.com/d36a12702a0e8d4b20f6c1780b954274650be96e/BUILD.gn

Project Member

Comment 32 by bugdroid1@chromium.org, Feb 21 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/9e35840d7795775ae97b5eae59a36227f0967176

commit 9e35840d7795775ae97b5eae59a36227f0967176
Author: Alexander Alekseev <alemate@chromium.org>
Date: Wed Feb 21 23:09:52 2018

Chrome OS login: remove duplicate closure compilation.

Chrome OS UI code is using compiled_resources2.gyp to run closure
compilation. Duplicate webui_closure_compile target was added to Chrome OS
login code. This duplicated amount of work needed to modify resource files
and caused a lot of confusion among developers.

This Cl removed webui_closure_compile target and leaves only
compiled_resources2.gyp to run closure compilation.

Bug:  632206 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I9daee7c52fc33524ee4fb5e12c4e0182a1ab7473
Reviewed-on: https://chromium-review.googlesource.com/926050
Reviewed-by: Achuith Bhandarkar <achuith@chromium.org>
Reviewed-by: calamity <calamity@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Commit-Queue: Alexander Alekseev <alemate@chromium.org>
Cr-Commit-Position: refs/heads/master@{#538244}
[modify] https://crrev.com/9e35840d7795775ae97b5eae59a36227f0967176/BUILD.gn
[delete] https://crrev.com/74386bc17720e781cc16e40a5d548ae0bdad4358/chrome/browser/resources/chromeos/login/BUILD.gn

Comment 33 Deleted

Project Member

Comment 34 by bugdroid1@chromium.org, Mar 1 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/196f9ffc560c56fc56a9d59f25916004cae802a2

commit 196f9ffc560c56fc56a9d59f25916004cae802a2
Author: Christopher Lam <calamity@chromium.org>
Date: Thu Mar 01 08:55:51 2018

Rename url function in util.js.

This CL renames a global function named url, which will conflict with
mojo namespaces in crrev.com/c/936349.

Bug:  632206 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I96908ac1adfcae0a565350e50f206ab1da1539be
Reviewed-on: https://chromium-review.googlesource.com/937007
Commit-Queue: calamity <calamity@chromium.org>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#540107}
[modify] https://crrev.com/196f9ffc560c56fc56a9d59f25916004cae802a2/chrome/browser/resources/gaia_auth_host/saml_handler.js
[modify] https://crrev.com/196f9ffc560c56fc56a9d59f25916004cae802a2/chrome/browser/resources/ntp4/new_tab.js
[modify] https://crrev.com/196f9ffc560c56fc56a9d59f25916004cae802a2/ui/webui/resources/js/cr/ui/tree.js
[modify] https://crrev.com/196f9ffc560c56fc56a9d59f25916004cae802a2/ui/webui/resources/js/icon.js
[modify] https://crrev.com/196f9ffc560c56fc56a9d59f25916004cae802a2/ui/webui/resources/js/util.js

Project Member

Comment 35 by bugdroid1@chromium.org, Mar 7 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/739a90dfc3668a1622aab9b1c4bbf71dec409593

commit 739a90dfc3668a1622aab9b1c4bbf71dec409593
Author: Christopher Lam <calamity@chromium.org>
Date: Wed Mar 07 03:54:37 2018

Add GN Closure Compilation ui/webui/

This CL converts ui/webui/ to use GN for its Closure Compilation. For
now this will run side-by-side with GYP, with the GYP compilation being
removed once all clients are switched to GN.

The compile_js.gni has been augmented with extra_sources support and
the ability to type check a group of js_library targets. A PRESUBMIT
which warns when BUILD.gn files are not updated has been added.

Bug:  632206 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: Ibad3213eb67f5c0ea42555cc45126a00cbdb783e
Reviewed-on: https://chromium-review.googlesource.com/942128
Commit-Queue: calamity <calamity@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#541316}
[modify] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/BUILD.gn
[modify] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/third_party/closure_compiler/closure_args.gni
[modify] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/third_party/closure_compiler/compile_js.gni
[add] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/BUILD.gn
[modify] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/PRESUBMIT.py
[add] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/cr_components/BUILD.gn
[add] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/cr_components/certificate_manager/BUILD.gn
[add] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/cr_components/chromeos/BUILD.gn
[add] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/cr_components/chromeos/network/BUILD.gn
[modify] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/cr_components/chromeos/network/network_siminfo.js
[add] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/cr_components/chromeos/quick_unlock/BUILD.gn
[add] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/cr_elements/BUILD.gn
[modify] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/cr_elements/chromeos/cr_picture/BUILD.gn
[add] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/cr_elements/chromeos/network/BUILD.gn
[add] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/cr_elements/cr_action_menu/BUILD.gn
[add] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/cr_elements/cr_dialog/BUILD.gn
[add] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/cr_elements/cr_drawer/BUILD.gn
[add] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/cr_elements/cr_expand_button/BUILD.gn
[add] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/cr_elements/cr_lazy_render/BUILD.gn
[add] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/cr_elements/cr_link_row/BUILD.gn
[add] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/cr_elements/cr_profile_avatar_selector/BUILD.gn
[add] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/cr_elements/cr_search_field/BUILD.gn
[add] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/cr_elements/cr_toast/BUILD.gn
[add] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/cr_elements/cr_toggle/BUILD.gn
[add] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/cr_elements/cr_toolbar/BUILD.gn
[add] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/cr_elements/policy/BUILD.gn
[modify] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/js/BUILD.gn
[add] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/js/cr/BUILD.gn
[add] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/js/cr/ui/BUILD.gn
[modify] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/js/cr/ui/grid.js
[modify] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/js/cr/ui/list.js
[add] https://crrev.com/739a90dfc3668a1622aab9b1c4bbf71dec409593/ui/webui/resources/js/cr/ui/table/BUILD.gn

Project Member

Comment 36 by bugdroid1@chromium.org, Mar 7 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/770bd96533da39cc28d5c29365ced33501e3432a

commit 770bd96533da39cc28d5c29365ced33501e3432a
Author: Christopher Lam <calamity@chromium.org>
Date: Wed Mar 07 11:22:19 2018

Add Closure Compilation to site_engagement.js.

This CL adds Closure Compilation via GN to the site engaement WebUI. To
do this, the following was implemented:
  - a JS externs generator was written for mojo
  - a Mojo externs file was added the third_party/closure_compiler
  - type annotations were added/updated for site_engagement.js
  - the webui_closure_compile target was reinstated in BUILD.gn
  - an extra_deps arg was added to the js_binary template

Bug:  632206 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: Id770a8a351affd5226e46837998d021640f51a0c
Reviewed-on: https://chromium-review.googlesource.com/936349
Commit-Queue: calamity <calamity@chromium.org>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: Ken Rockot <rockot@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Reviewed-by: Sam McNally <sammc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#541411}
[modify] https://crrev.com/770bd96533da39cc28d5c29365ced33501e3432a/BUILD.gn
[add] https://crrev.com/770bd96533da39cc28d5c29365ced33501e3432a/chrome/browser/resources/engagement/BUILD.gn
[modify] https://crrev.com/770bd96533da39cc28d5c29365ced33501e3432a/chrome/browser/resources/engagement/site_engagement.js
[modify] https://crrev.com/770bd96533da39cc28d5c29365ced33501e3432a/mojo/public/tools/bindings/BUILD.gn
[add] https://crrev.com/770bd96533da39cc28d5c29365ced33501e3432a/mojo/public/tools/bindings/generators/js_templates/externs/interface_definition.tmpl
[add] https://crrev.com/770bd96533da39cc28d5c29365ced33501e3432a/mojo/public/tools/bindings/generators/js_templates/externs/module.externs.tmpl
[add] https://crrev.com/770bd96533da39cc28d5c29365ced33501e3432a/mojo/public/tools/bindings/generators/js_templates/externs/struct_definition.tmpl
[modify] https://crrev.com/770bd96533da39cc28d5c29365ced33501e3432a/mojo/public/tools/bindings/generators/mojom_js_generator.py
[modify] https://crrev.com/770bd96533da39cc28d5c29365ced33501e3432a/mojo/public/tools/bindings/mojom.gni
[modify] https://crrev.com/770bd96533da39cc28d5c29365ced33501e3432a/third_party/closure_compiler/compile_js.gni
[add] https://crrev.com/770bd96533da39cc28d5c29365ced33501e3432a/third_party/closure_compiler/externs/mojo.js

Project Member

Comment 37 by bugdroid1@chromium.org, Mar 13 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/a77029c40317fa3bd45dfbf387c383b966773db9

commit a77029c40317fa3bd45dfbf387c383b966773db9
Author: Christopher Lam <calamity@chromium.org>
Date: Tue Mar 13 09:20:44 2018

[Closure GN] Convert MD Bookmarks Closure Compilation to GN

Bug:  632206 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I05b1348c408965811a2b557bc2a1cb2ee7850096
Reviewed-on: https://chromium-review.googlesource.com/954822
Commit-Queue: calamity <calamity@chromium.org>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#542749}
[modify] https://crrev.com/a77029c40317fa3bd45dfbf387c383b966773db9/BUILD.gn
[modify] https://crrev.com/a77029c40317fa3bd45dfbf387c383b966773db9/chrome/browser/resources/BUILD.gn
[modify] https://crrev.com/a77029c40317fa3bd45dfbf387c383b966773db9/chrome/browser/resources/md_bookmarks/BUILD.gn
[delete] https://crrev.com/584fe1448a33b2df382d910d0c2e156836099f6b/chrome/browser/resources/md_bookmarks/compiled_resources2.gyp
[modify] https://crrev.com/a77029c40317fa3bd45dfbf387c383b966773db9/third_party/closure_compiler/compiled_resources2.gyp

Project Member

Comment 38 by bugdroid1@chromium.org, Mar 13 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/1640e249cd62df6be245c5117418373d407d50e7

commit 1640e249cd62df6be245c5117418373d407d50e7
Author: Christian Dullweber <dullweber@chromium.org>
Date: Tue Mar 13 10:14:36 2018

Revert "[Closure GN] Convert MD Bookmarks Closure Compilation to GN"

This reverts commit a77029c40317fa3bd45dfbf387c383b966773db9.

Reason for revert: Build failed because it is missing java during closure compilation step on windows bot: 
https://ci.chromium.org/buildbot/chromium/Win/64904 

Original change's description:
> [Closure GN] Convert MD Bookmarks Closure Compilation to GN
> 
> Bug:  632206 
> Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
> Change-Id: I05b1348c408965811a2b557bc2a1cb2ee7850096
> Reviewed-on: https://chromium-review.googlesource.com/954822
> Commit-Queue: calamity <calamity@chromium.org>
> Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
> Reviewed-by: Dirk Pranke <dpranke@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#542749}

TBR=calamity@chromium.org,dpranke@chromium.org,dpapad@chromium.org

Change-Id: I9f52c5010125781f35a08d3fa0743362c788706a
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug:  632206 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Reviewed-on: https://chromium-review.googlesource.com/960141
Reviewed-by: Christian Dullweber <dullweber@chromium.org>
Commit-Queue: Christian Dullweber <dullweber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#542755}
[modify] https://crrev.com/1640e249cd62df6be245c5117418373d407d50e7/BUILD.gn
[modify] https://crrev.com/1640e249cd62df6be245c5117418373d407d50e7/chrome/browser/resources/BUILD.gn
[modify] https://crrev.com/1640e249cd62df6be245c5117418373d407d50e7/chrome/browser/resources/md_bookmarks/BUILD.gn
[add] https://crrev.com/1640e249cd62df6be245c5117418373d407d50e7/chrome/browser/resources/md_bookmarks/compiled_resources2.gyp
[modify] https://crrev.com/1640e249cd62df6be245c5117418373d407d50e7/third_party/closure_compiler/compiled_resources2.gyp

Project Member

Comment 39 by bugdroid1@chromium.org, Apr 4 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/fdac10a15190dcad507a53d5b61e8bbd1eb70293

commit fdac10a15190dcad507a53d5b61e8bbd1eb70293
Author: Christopher Lam <calamity@chromium.org>
Date: Wed Apr 04 04:02:45 2018

Reland '[Closure GN] Convert MD Bookmarks Closure Compilation to GN'

This CL relands the conversion which failed due to Windows bots trying
to run the compilation without Java. A GN flag has since been added
which fixes the issue.

Original: https://chromium-review.googlesource.com/c/chromium/src/+/954822

Bug:  632206 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: Iee3e684bd66873deaab742ad9d545a8c1b8dd8ce
Tbr: dpapad@chromium.org
Reviewed-on: https://chromium-review.googlesource.com/985712
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Reviewed-by: calamity <calamity@chromium.org>
Commit-Queue: calamity <calamity@chromium.org>
Cr-Commit-Position: refs/heads/master@{#547974}
[modify] https://crrev.com/fdac10a15190dcad507a53d5b61e8bbd1eb70293/BUILD.gn
[modify] https://crrev.com/fdac10a15190dcad507a53d5b61e8bbd1eb70293/chrome/browser/resources/BUILD.gn
[modify] https://crrev.com/fdac10a15190dcad507a53d5b61e8bbd1eb70293/chrome/browser/resources/md_bookmarks/BUILD.gn
[delete] https://crrev.com/0d64a4bcd56d33f0d465a193176ccd762e56c9bf/chrome/browser/resources/md_bookmarks/compiled_resources2.gyp
[modify] https://crrev.com/fdac10a15190dcad507a53d5b61e8bbd1eb70293/third_party/closure_compiler/compiled_resources2.gyp

Project Member

Comment 40 by bugdroid1@chromium.org, Apr 16 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/673e013bcb033be7dda940d18d990ba78a06882f

commit 673e013bcb033be7dda940d18d990ba78a06882f
Author: Christopher Lam <calamity@chromium.org>
Date: Mon Apr 16 09:42:27 2018

[Closure GN] Convert simple WebUI Closure Compilation to GN.

See go/closure-compile-gn for details.

This CL converts the Closure Compilation from GYP to GN for the following:
- cryptotoken
- download_internals
- md_downloads
- md_extensions
- md_history
- md_user_manager
- offline_pages
- signin
- webapks
- welcome

A local closure compile can be run by setting closure_compile = true in
args.gn, and then running ninja -C out/Default webui_closure_compile.
Individual projects can be compiled via, for example,
ninja -C out/Default chrome/browser/resources/md_extensions:closure_compile

Bug:  632206 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I401fc54ee6c5202bd27855ba28d886677e52210e
Reviewed-on: https://chromium-review.googlesource.com/954772
Commit-Queue: calamity <calamity@chromium.org>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#550956}
[modify] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/BUILD.gn
[add] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/cryptotoken/BUILD.gn
[delete] https://crrev.com/dcb5b1f4e6fa519c5122338007ae81872f4d561b/chrome/browser/resources/cryptotoken/compiled_resources2.gyp
[add] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/download_internals/BUILD.gn
[delete] https://crrev.com/dcb5b1f4e6fa519c5122338007ae81872f4d561b/chrome/browser/resources/download_internals/compiled_resources2.gyp
[modify] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/md_downloads/BUILD.gn
[delete] https://crrev.com/dcb5b1f4e6fa519c5122338007ae81872f4d561b/chrome/browser/resources/md_downloads/compiled_resources2.gyp
[modify] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/md_extensions/BUILD.gn
[delete] https://crrev.com/dcb5b1f4e6fa519c5122338007ae81872f4d561b/chrome/browser/resources/md_extensions/compiled_resources2.gyp
[modify] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/md_extensions/extensions.html
[modify] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/md_extensions/shortcut_input.js
[modify] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/md_history/BUILD.gn
[delete] https://crrev.com/dcb5b1f4e6fa519c5122338007ae81872f4d561b/chrome/browser/resources/md_history/compiled_resources2.gyp
[add] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/md_user_manager/BUILD.gn
[delete] https://crrev.com/dcb5b1f4e6fa519c5122338007ae81872f4d561b/chrome/browser/resources/md_user_manager/compiled_resources2.gyp
[modify] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/md_user_manager/user_manager_tutorial.js
[add] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/offline_pages/BUILD.gn
[delete] https://crrev.com/dcb5b1f4e6fa519c5122338007ae81872f4d561b/chrome/browser/resources/offline_pages/compiled_resources2.gyp
[add] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/signin/dice_sync_confirmation/BUILD.gn
[delete] https://crrev.com/dcb5b1f4e6fa519c5122338007ae81872f4d561b/chrome/browser/resources/signin/dice_sync_confirmation/compiled_resources2.gyp
[add] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/webapks/BUILD.gn
[delete] https://crrev.com/dcb5b1f4e6fa519c5122338007ae81872f4d561b/chrome/browser/resources/webapks/compiled_resources2.gyp
[add] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/welcome/dice_welcome/BUILD.gn
[delete] https://crrev.com/dcb5b1f4e6fa519c5122338007ae81872f4d561b/chrome/browser/resources/welcome/dice_welcome/compiled_resources2.gyp
[modify] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/third_party/closure_compiler/compiled_resources2.gyp

Project Member

Comment 41 by bugdroid1@chromium.org, Apr 17 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/60e67f009d3c0a4f936aba0fc33039ef15e99289

commit 60e67f009d3c0a4f936aba0fc33039ef15e99289
Author: Nate Fischer <ntfschr@chromium.org>
Date: Tue Apr 17 00:47:37 2018

Revert "[Closure GN] Convert simple WebUI Closure Compilation to GN."

This reverts commit 673e013bcb033be7dda940d18d990ba78a06882f.

Reason for revert: http://crbug.com/833550

Original change's description:
> [Closure GN] Convert simple WebUI Closure Compilation to GN.
> 
> See go/closure-compile-gn for details.
> 
> This CL converts the Closure Compilation from GYP to GN for the following:
> - cryptotoken
> - download_internals
> - md_downloads
> - md_extensions
> - md_history
> - md_user_manager
> - offline_pages
> - signin
> - webapks
> - welcome
> 
> A local closure compile can be run by setting closure_compile = true in
> args.gn, and then running ninja -C out/Default webui_closure_compile.
> Individual projects can be compiled via, for example,
> ninja -C out/Default chrome/browser/resources/md_extensions:closure_compile
> 
> Bug:  632206 
> Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
> Change-Id: I401fc54ee6c5202bd27855ba28d886677e52210e
> Reviewed-on: https://chromium-review.googlesource.com/954772
> Commit-Queue: calamity <calamity@chromium.org>
> Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#550956}

TBR=calamity@chromium.org,dpapad@chromium.org

Change-Id: I298237aae447470ad5e75ec6781baa124e58e925
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug:  632206 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Reviewed-on: https://chromium-review.googlesource.com/1012904
Reviewed-by: Nate Fischer <ntfschr@chromium.org>
Commit-Queue: Nate Fischer <ntfschr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#551192}
[modify] https://crrev.com/60e67f009d3c0a4f936aba0fc33039ef15e99289/chrome/browser/resources/BUILD.gn
[delete] https://crrev.com/54dc71b1e039f594b89646a6942f8c9f5446c8ce/chrome/browser/resources/cryptotoken/BUILD.gn
[add] https://crrev.com/60e67f009d3c0a4f936aba0fc33039ef15e99289/chrome/browser/resources/cryptotoken/compiled_resources2.gyp
[delete] https://crrev.com/54dc71b1e039f594b89646a6942f8c9f5446c8ce/chrome/browser/resources/download_internals/BUILD.gn
[add] https://crrev.com/60e67f009d3c0a4f936aba0fc33039ef15e99289/chrome/browser/resources/download_internals/compiled_resources2.gyp
[modify] https://crrev.com/60e67f009d3c0a4f936aba0fc33039ef15e99289/chrome/browser/resources/md_downloads/BUILD.gn
[add] https://crrev.com/60e67f009d3c0a4f936aba0fc33039ef15e99289/chrome/browser/resources/md_downloads/compiled_resources2.gyp
[modify] https://crrev.com/60e67f009d3c0a4f936aba0fc33039ef15e99289/chrome/browser/resources/md_extensions/BUILD.gn
[add] https://crrev.com/60e67f009d3c0a4f936aba0fc33039ef15e99289/chrome/browser/resources/md_extensions/compiled_resources2.gyp
[modify] https://crrev.com/60e67f009d3c0a4f936aba0fc33039ef15e99289/chrome/browser/resources/md_extensions/extensions.html
[modify] https://crrev.com/60e67f009d3c0a4f936aba0fc33039ef15e99289/chrome/browser/resources/md_extensions/shortcut_input.js
[modify] https://crrev.com/60e67f009d3c0a4f936aba0fc33039ef15e99289/chrome/browser/resources/md_history/BUILD.gn
[add] https://crrev.com/60e67f009d3c0a4f936aba0fc33039ef15e99289/chrome/browser/resources/md_history/compiled_resources2.gyp
[delete] https://crrev.com/54dc71b1e039f594b89646a6942f8c9f5446c8ce/chrome/browser/resources/md_user_manager/BUILD.gn
[add] https://crrev.com/60e67f009d3c0a4f936aba0fc33039ef15e99289/chrome/browser/resources/md_user_manager/compiled_resources2.gyp
[modify] https://crrev.com/60e67f009d3c0a4f936aba0fc33039ef15e99289/chrome/browser/resources/md_user_manager/user_manager_tutorial.js
[delete] https://crrev.com/54dc71b1e039f594b89646a6942f8c9f5446c8ce/chrome/browser/resources/offline_pages/BUILD.gn
[add] https://crrev.com/60e67f009d3c0a4f936aba0fc33039ef15e99289/chrome/browser/resources/offline_pages/compiled_resources2.gyp
[delete] https://crrev.com/54dc71b1e039f594b89646a6942f8c9f5446c8ce/chrome/browser/resources/signin/dice_sync_confirmation/BUILD.gn
[add] https://crrev.com/60e67f009d3c0a4f936aba0fc33039ef15e99289/chrome/browser/resources/signin/dice_sync_confirmation/compiled_resources2.gyp
[delete] https://crrev.com/54dc71b1e039f594b89646a6942f8c9f5446c8ce/chrome/browser/resources/webapks/BUILD.gn
[add] https://crrev.com/60e67f009d3c0a4f936aba0fc33039ef15e99289/chrome/browser/resources/webapks/compiled_resources2.gyp
[delete] https://crrev.com/54dc71b1e039f594b89646a6942f8c9f5446c8ce/chrome/browser/resources/welcome/dice_welcome/BUILD.gn
[add] https://crrev.com/60e67f009d3c0a4f936aba0fc33039ef15e99289/chrome/browser/resources/welcome/dice_welcome/compiled_resources2.gyp
[modify] https://crrev.com/60e67f009d3c0a4f936aba0fc33039ef15e99289/third_party/closure_compiler/compiled_resources2.gyp

Project Member

Comment 42 by bugdroid1@chromium.org, Apr 17 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/0e701c03025b0390abd4f15f356b78e3db53e002

commit 0e701c03025b0390abd4f15f356b78e3db53e002
Author: Christopher Lam <calamity@chromium.org>
Date: Tue Apr 17 05:59:01 2018

Reland [Closure GN] Convert simple WebUI Closure Compilation to GN.

See go/closure-compile-gn for details.

This CL converts the Closure Compilation from GYP to GN for the following:
- cryptotoken
- download_internals
- md_downloads
- md_extensions
- md_history
- md_user_manager
- offline_pages
- signin
- webapks
- welcome

A local closure compile can be run by setting closure_compile = true in
args.gn, and then running ninja -C out/Default webui_closure_compile.
Individual projects can be compiled via, for example,
ninja -C out/Default chrome/browser/resources/md_extensions:closure_compile

Relanding with a fix for android builds.

TBR=calamity@chromium.org,dpapad@chromium.org,ntfschr@chromium.org

Bug:  632206 , 833550
Change-Id: I197201fe9cd06153cce18a8e6243d6fd189f1087
Reviewed-on: https://chromium-review.googlesource.com/1013801
Commit-Queue: calamity <calamity@chromium.org>
Reviewed-by: Nate Fischer <ntfschr@chromium.org>
Reviewed-by: calamity <calamity@chromium.org>
Cr-Commit-Position: refs/heads/master@{#551259}
[modify] https://crrev.com/0e701c03025b0390abd4f15f356b78e3db53e002/chrome/browser/resources/BUILD.gn
[add] https://crrev.com/0e701c03025b0390abd4f15f356b78e3db53e002/chrome/browser/resources/cryptotoken/BUILD.gn
[delete] https://crrev.com/b2eb7350ea8a03c5d9dca7dc7fa8068100560bf5/chrome/browser/resources/cryptotoken/compiled_resources2.gyp
[add] https://crrev.com/0e701c03025b0390abd4f15f356b78e3db53e002/chrome/browser/resources/download_internals/BUILD.gn
[delete] https://crrev.com/b2eb7350ea8a03c5d9dca7dc7fa8068100560bf5/chrome/browser/resources/download_internals/compiled_resources2.gyp
[modify] https://crrev.com/0e701c03025b0390abd4f15f356b78e3db53e002/chrome/browser/resources/md_downloads/BUILD.gn
[delete] https://crrev.com/b2eb7350ea8a03c5d9dca7dc7fa8068100560bf5/chrome/browser/resources/md_downloads/compiled_resources2.gyp
[modify] https://crrev.com/0e701c03025b0390abd4f15f356b78e3db53e002/chrome/browser/resources/md_extensions/BUILD.gn
[delete] https://crrev.com/b2eb7350ea8a03c5d9dca7dc7fa8068100560bf5/chrome/browser/resources/md_extensions/compiled_resources2.gyp
[modify] https://crrev.com/0e701c03025b0390abd4f15f356b78e3db53e002/chrome/browser/resources/md_extensions/extensions.html
[modify] https://crrev.com/0e701c03025b0390abd4f15f356b78e3db53e002/chrome/browser/resources/md_extensions/shortcut_input.js
[modify] https://crrev.com/0e701c03025b0390abd4f15f356b78e3db53e002/chrome/browser/resources/md_history/BUILD.gn
[delete] https://crrev.com/b2eb7350ea8a03c5d9dca7dc7fa8068100560bf5/chrome/browser/resources/md_history/compiled_resources2.gyp
[add] https://crrev.com/0e701c03025b0390abd4f15f356b78e3db53e002/chrome/browser/resources/md_user_manager/BUILD.gn
[delete] https://crrev.com/b2eb7350ea8a03c5d9dca7dc7fa8068100560bf5/chrome/browser/resources/md_user_manager/compiled_resources2.gyp
[modify] https://crrev.com/0e701c03025b0390abd4f15f356b78e3db53e002/chrome/browser/resources/md_user_manager/user_manager_tutorial.js
[add] https://crrev.com/0e701c03025b0390abd4f15f356b78e3db53e002/chrome/browser/resources/offline_pages/BUILD.gn
[delete] https://crrev.com/b2eb7350ea8a03c5d9dca7dc7fa8068100560bf5/chrome/browser/resources/offline_pages/compiled_resources2.gyp
[add] https://crrev.com/0e701c03025b0390abd4f15f356b78e3db53e002/chrome/browser/resources/signin/dice_sync_confirmation/BUILD.gn
[delete] https://crrev.com/b2eb7350ea8a03c5d9dca7dc7fa8068100560bf5/chrome/browser/resources/signin/dice_sync_confirmation/compiled_resources2.gyp
[add] https://crrev.com/0e701c03025b0390abd4f15f356b78e3db53e002/chrome/browser/resources/webapks/BUILD.gn
[delete] https://crrev.com/b2eb7350ea8a03c5d9dca7dc7fa8068100560bf5/chrome/browser/resources/webapks/compiled_resources2.gyp
[add] https://crrev.com/0e701c03025b0390abd4f15f356b78e3db53e002/chrome/browser/resources/welcome/dice_welcome/BUILD.gn
[delete] https://crrev.com/b2eb7350ea8a03c5d9dca7dc7fa8068100560bf5/chrome/browser/resources/welcome/dice_welcome/compiled_resources2.gyp
[modify] https://crrev.com/0e701c03025b0390abd4f15f356b78e3db53e002/third_party/closure_compiler/compiled_resources2.gyp

Project Member

Comment 43 by bugdroid1@chromium.org, Apr 17 2018

Labels: merge-merged-testbranch
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/673e013bcb033be7dda940d18d990ba78a06882f

commit 673e013bcb033be7dda940d18d990ba78a06882f
Author: Christopher Lam <calamity@chromium.org>
Date: Mon Apr 16 09:42:27 2018

[Closure GN] Convert simple WebUI Closure Compilation to GN.

See go/closure-compile-gn for details.

This CL converts the Closure Compilation from GYP to GN for the following:
- cryptotoken
- download_internals
- md_downloads
- md_extensions
- md_history
- md_user_manager
- offline_pages
- signin
- webapks
- welcome

A local closure compile can be run by setting closure_compile = true in
args.gn, and then running ninja -C out/Default webui_closure_compile.
Individual projects can be compiled via, for example,
ninja -C out/Default chrome/browser/resources/md_extensions:closure_compile

Bug:  632206 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I401fc54ee6c5202bd27855ba28d886677e52210e
Reviewed-on: https://chromium-review.googlesource.com/954772
Commit-Queue: calamity <calamity@chromium.org>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#550956}
[modify] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/BUILD.gn
[add] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/cryptotoken/BUILD.gn
[delete] https://crrev.com/dcb5b1f4e6fa519c5122338007ae81872f4d561b/chrome/browser/resources/cryptotoken/compiled_resources2.gyp
[add] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/download_internals/BUILD.gn
[delete] https://crrev.com/dcb5b1f4e6fa519c5122338007ae81872f4d561b/chrome/browser/resources/download_internals/compiled_resources2.gyp
[modify] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/md_downloads/BUILD.gn
[delete] https://crrev.com/dcb5b1f4e6fa519c5122338007ae81872f4d561b/chrome/browser/resources/md_downloads/compiled_resources2.gyp
[modify] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/md_extensions/BUILD.gn
[delete] https://crrev.com/dcb5b1f4e6fa519c5122338007ae81872f4d561b/chrome/browser/resources/md_extensions/compiled_resources2.gyp
[modify] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/md_extensions/extensions.html
[modify] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/md_extensions/shortcut_input.js
[modify] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/md_history/BUILD.gn
[delete] https://crrev.com/dcb5b1f4e6fa519c5122338007ae81872f4d561b/chrome/browser/resources/md_history/compiled_resources2.gyp
[add] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/md_user_manager/BUILD.gn
[delete] https://crrev.com/dcb5b1f4e6fa519c5122338007ae81872f4d561b/chrome/browser/resources/md_user_manager/compiled_resources2.gyp
[modify] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/md_user_manager/user_manager_tutorial.js
[add] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/offline_pages/BUILD.gn
[delete] https://crrev.com/dcb5b1f4e6fa519c5122338007ae81872f4d561b/chrome/browser/resources/offline_pages/compiled_resources2.gyp
[add] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/signin/dice_sync_confirmation/BUILD.gn
[delete] https://crrev.com/dcb5b1f4e6fa519c5122338007ae81872f4d561b/chrome/browser/resources/signin/dice_sync_confirmation/compiled_resources2.gyp
[add] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/webapks/BUILD.gn
[delete] https://crrev.com/dcb5b1f4e6fa519c5122338007ae81872f4d561b/chrome/browser/resources/webapks/compiled_resources2.gyp
[add] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/chrome/browser/resources/welcome/dice_welcome/BUILD.gn
[delete] https://crrev.com/dcb5b1f4e6fa519c5122338007ae81872f4d561b/chrome/browser/resources/welcome/dice_welcome/compiled_resources2.gyp
[modify] https://crrev.com/673e013bcb033be7dda940d18d990ba78a06882f/third_party/closure_compiler/compiled_resources2.gyp

Project Member

Comment 44 by bugdroid1@chromium.org, Apr 23 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/05af9610e396e4e862afba8033af23b03fb72356

commit 05af9610e396e4e862afba8033af23b03fb72356
Author: Christopher Lam <calamity@chromium.org>
Date: Mon Apr 23 05:55:34 2018

[File Manager] Fix closure type errors.

This CL is a precursor to https://crrev.com/c/1018684. It fixes some
Closure Compilation issues which were not being reported in the GYP
build, likely due to some silent failure within the Closure build.

Bug:  632206 
TBR=fukino@chromium.org

Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I571177fb8060a0b3a1d374988f7988b9795ccdb3
Reviewed-on: https://chromium-review.googlesource.com/1021000
Reviewed-by: calamity <calamity@chromium.org>
Reviewed-by: Sasha Morrissey <sashab@chromium.org>
Commit-Queue: calamity <calamity@chromium.org>
Cr-Commit-Position: refs/heads/master@{#552643}
[modify] https://crrev.com/05af9610e396e4e862afba8033af23b03fb72356/components/chrome_apps/webstore_widget/cws_widget/cws_widget_container_error_dialog.js
[modify] https://crrev.com/05af9610e396e4e862afba8033af23b03fb72356/ui/file_manager/file_manager/background/js/media_import_handler.js
[modify] https://crrev.com/05af9610e396e4e862afba8033af23b03fb72356/ui/file_manager/file_manager/background/js/task_queue.js
[modify] https://crrev.com/05af9610e396e4e862afba8033af23b03fb72356/ui/file_manager/file_manager/common/js/util.js
[modify] https://crrev.com/05af9610e396e4e862afba8033af23b03fb72356/ui/file_manager/file_manager/foreground/js/directory_model.js
[modify] https://crrev.com/05af9610e396e4e862afba8033af23b03fb72356/ui/file_manager/file_manager/foreground/js/file_manager_commands.js
[modify] https://crrev.com/05af9610e396e4e862afba8033af23b03fb72356/ui/file_manager/file_manager/foreground/js/file_tasks.js
[modify] https://crrev.com/05af9610e396e4e862afba8033af23b03fb72356/ui/file_manager/file_manager/foreground/js/list_thumbnail_loader.js
[modify] https://crrev.com/05af9610e396e4e862afba8033af23b03fb72356/ui/file_manager/file_manager/foreground/js/navigation_list_model.js
[modify] https://crrev.com/05af9610e396e4e862afba8033af23b03fb72356/ui/file_manager/file_manager/foreground/js/ui/banners.js
[modify] https://crrev.com/05af9610e396e4e862afba8033af23b03fb72356/ui/file_manager/file_manager/foreground/js/ui/error_dialog.js
[modify] https://crrev.com/05af9610e396e4e862afba8033af23b03fb72356/ui/file_manager/file_manager/foreground/js/ui/file_grid.js
[modify] https://crrev.com/05af9610e396e4e862afba8033af23b03fb72356/ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js
[modify] https://crrev.com/05af9610e396e4e862afba8033af23b03fb72356/ui/file_manager/file_manager/foreground/js/ui/file_table.js
[modify] https://crrev.com/05af9610e396e4e862afba8033af23b03fb72356/ui/file_manager/file_manager/foreground/js/ui/files_alert_dialog.js
[modify] https://crrev.com/05af9610e396e4e862afba8033af23b03fb72356/ui/file_manager/file_manager/foreground/js/ui/files_confirm_dialog.js
[modify] https://crrev.com/05af9610e396e4e862afba8033af23b03fb72356/ui/file_manager/file_manager/foreground/js/ui/share_dialog.js
[modify] https://crrev.com/05af9610e396e4e862afba8033af23b03fb72356/ui/file_manager/gallery/js/background.js
[modify] https://crrev.com/05af9610e396e4e862afba8033af23b03fb72356/ui/file_manager/gallery/js/entry_list_watcher.js
[modify] https://crrev.com/05af9610e396e4e862afba8033af23b03fb72356/ui/file_manager/gallery/js/image_editor/image_editor_mode.js
[modify] https://crrev.com/05af9610e396e4e862afba8033af23b03fb72356/ui/file_manager/gallery/js/image_editor/image_view.js
[modify] https://crrev.com/05af9610e396e4e862afba8033af23b03fb72356/ui/webui/resources/js/cr/ui/dialogs.js
[modify] https://crrev.com/05af9610e396e4e862afba8033af23b03fb72356/ui/webui/resources/js/cr/ui/list.js
[modify] https://crrev.com/05af9610e396e4e862afba8033af23b03fb72356/ui/webui/resources/js/cr/ui/splitter.js

Project Member

Comment 45 by bugdroid1@chromium.org, Apr 26 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/b97769320998ecb4ac305e9a25be7e9fe7c58cfb

commit b97769320998ecb4ac305e9a25be7e9fe7c58cfb
Author: Christopher Lam <calamity@chromium.org>
Date: Thu Apr 26 01:47:49 2018

Move ui/file_manager/ Closure Compile to GN.

See go/closure-compile-gn for details.

This CL converts the Closure Compilation of the file manager from GYP to
GN, and fixes a number of type-checking issues that were somehow
suppressed due to the way the compiler used to be run.

A local closure compile can be run by setting closure_compile = true in
args.gn, and then running ninja -C out/Default webui_closure_compile.
A more localized compile may look like:
ninja -C out/Default ui/file_manager:closure_compile

Bug:  632206 
TBR=tbreisacher@chromium.org

Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: Ic95ae50ee2e61cb6b5432cb4c5e13a8ac3b2bb44
Reviewed-on: https://chromium-review.googlesource.com/1018684
Commit-Queue: calamity <calamity@chromium.org>
Reviewed-by: Scott Graham <scottmg@chromium.org>
Reviewed-by: Sasha Morrissey <sashab@chromium.org>
Reviewed-by: Naoki Fukino <fukino@chromium.org>
Cr-Commit-Position: refs/heads/master@{#553872}
[modify] https://crrev.com/b97769320998ecb4ac305e9a25be7e9fe7c58cfb/BUILD.gn
[add] https://crrev.com/b97769320998ecb4ac305e9a25be7e9fe7c58cfb/components/chrome_apps/webstore_widget/cws_widget/BUILD.gn
[delete] https://crrev.com/116dd7c37d473b6be5d34812035c4f14aa360efa/components/chrome_apps/webstore_widget/cws_widget/compiled_resources2.gyp
[delete] https://crrev.com/116dd7c37d473b6be5d34812035c4f14aa360efa/third_party/analytics/compiled_resources2.gyp
[modify] https://crrev.com/b97769320998ecb4ac305e9a25be7e9fe7c58cfb/third_party/closure_compiler/compiled_resources2.gyp
[modify] https://crrev.com/b97769320998ecb4ac305e9a25be7e9fe7c58cfb/ui/file_manager/BUILD.gn
[add] https://crrev.com/b97769320998ecb4ac305e9a25be7e9fe7c58cfb/ui/file_manager/audio_player/elements/BUILD.gn
[delete] https://crrev.com/116dd7c37d473b6be5d34812035c4f14aa360efa/ui/file_manager/audio_player/elements/compiled_resources2.gyp
[add] https://crrev.com/b97769320998ecb4ac305e9a25be7e9fe7c58cfb/ui/file_manager/audio_player/js/BUILD.gn
[delete] https://crrev.com/116dd7c37d473b6be5d34812035c4f14aa360efa/ui/file_manager/audio_player/js/compiled_resources2.gyp
[delete] https://crrev.com/116dd7c37d473b6be5d34812035c4f14aa360efa/ui/file_manager/compiled_resources2.gyp
[delete] https://crrev.com/116dd7c37d473b6be5d34812035c4f14aa360efa/ui/file_manager/externs/background/compiled_resources2.gyp
[delete] https://crrev.com/116dd7c37d473b6be5d34812035c4f14aa360efa/ui/file_manager/externs/compiled_resources2.gyp
[add] https://crrev.com/b97769320998ecb4ac305e9a25be7e9fe7c58cfb/ui/file_manager/file_manager/background/js/BUILD.gn
[delete] https://crrev.com/116dd7c37d473b6be5d34812035c4f14aa360efa/ui/file_manager/file_manager/background/js/compiled_resources2.gyp
[add] https://crrev.com/b97769320998ecb4ac305e9a25be7e9fe7c58cfb/ui/file_manager/file_manager/common/js/BUILD.gn
[delete] https://crrev.com/116dd7c37d473b6be5d34812035c4f14aa360efa/ui/file_manager/file_manager/common/js/compiled_resources2.gyp
[add] https://crrev.com/b97769320998ecb4ac305e9a25be7e9fe7c58cfb/ui/file_manager/file_manager/foreground/elements/BUILD.gn
[delete] https://crrev.com/116dd7c37d473b6be5d34812035c4f14aa360efa/ui/file_manager/file_manager/foreground/elements/compiled_resources2.gyp
[add] https://crrev.com/b97769320998ecb4ac305e9a25be7e9fe7c58cfb/ui/file_manager/file_manager/foreground/js/BUILD.gn
[delete] https://crrev.com/116dd7c37d473b6be5d34812035c4f14aa360efa/ui/file_manager/file_manager/foreground/js/compiled_resources2.gyp
[add] https://crrev.com/b97769320998ecb4ac305e9a25be7e9fe7c58cfb/ui/file_manager/file_manager/foreground/js/metadata/BUILD.gn
[delete] https://crrev.com/116dd7c37d473b6be5d34812035c4f14aa360efa/ui/file_manager/file_manager/foreground/js/metadata/compiled_resources2.gyp
[add] https://crrev.com/b97769320998ecb4ac305e9a25be7e9fe7c58cfb/ui/file_manager/file_manager/foreground/js/ui/BUILD.gn
[delete] https://crrev.com/116dd7c37d473b6be5d34812035c4f14aa360efa/ui/file_manager/file_manager/foreground/js/ui/compiled_resources2.gyp
[add] https://crrev.com/b97769320998ecb4ac305e9a25be7e9fe7c58cfb/ui/file_manager/gallery/js/BUILD.gn
[delete] https://crrev.com/116dd7c37d473b6be5d34812035c4f14aa360efa/ui/file_manager/gallery/js/compiled_resources2.gyp
[add] https://crrev.com/b97769320998ecb4ac305e9a25be7e9fe7c58cfb/ui/file_manager/gallery/js/image_editor/BUILD.gn
[delete] https://crrev.com/116dd7c37d473b6be5d34812035c4f14aa360efa/ui/file_manager/gallery/js/image_editor/compiled_resources2.gyp
[add] https://crrev.com/b97769320998ecb4ac305e9a25be7e9fe7c58cfb/ui/file_manager/image_loader/BUILD.gn
[delete] https://crrev.com/116dd7c37d473b6be5d34812035c4f14aa360efa/ui/file_manager/image_loader/compiled_resources2.gyp
[add] https://crrev.com/b97769320998ecb4ac305e9a25be7e9fe7c58cfb/ui/file_manager/video_player/js/BUILD.gn
[add] https://crrev.com/b97769320998ecb4ac305e9a25be7e9fe7c58cfb/ui/file_manager/video_player/js/cast/BUILD.gn
[delete] https://crrev.com/116dd7c37d473b6be5d34812035c4f14aa360efa/ui/file_manager/video_player/js/cast/compiled_resources2.gyp
[delete] https://crrev.com/116dd7c37d473b6be5d34812035c4f14aa360efa/ui/file_manager/video_player/js/compiled_resources2.gyp

Project Member

Comment 46 by bugdroid1@chromium.org, Apr 27 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/5138c9fbfd28e78e2c310fba503ab9a693e512c1

commit 5138c9fbfd28e78e2c310fba503ab9a693e512c1
Author: Christopher Lam <calamity@chromium.org>
Date: Fri Apr 27 05:26:30 2018

Convert Settings Closure Compile to GN.

See go/closure-compile-gn for details.

This CL converts the Closure Compilation of chrome://settings from GYP to
GN, and fixes a number of type-checking issues that were somehow
suppressed due to the way the compiler used to be run.

A local closure compile can be run by setting closure_compile = true in
args.gn, and then running ninja -C out/Default webui_closure_compile.
A more localized compile may look like:
ninja -C out/Default chrome/browser/resources/settings:closure_compile

Bug:  632206 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: Ib1957d6e0d7bddf2f108197c60c1ca9d9b8f74ca
Reviewed-on: https://chromium-review.googlesource.com/1023520
Commit-Queue: calamity <calamity@chromium.org>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#554318}
[modify] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/BUILD.gn
[modify] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/BUILD.gn
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/a11y_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/a11y_page/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/about_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/about_page/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/android_apps_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/android_apps_page/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/animation/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/animation/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/appearance_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/appearance_page/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/basic_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/basic_page/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/bluetooth_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/bluetooth_page/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/change_password_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/change_password_page/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/chrome_cleanup_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/chrome_cleanup_page/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/clear_browsing_data_dialog/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/clear_browsing_data_dialog/compiled_resources2.gyp
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/controls/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/controls/compiled_resources2.gyp
[modify] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/controls/settings_boolean_control_behavior.js
[modify] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/controls/settings_checkbox.html
[modify] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/controls/settings_toggle_button.html
[modify] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/controls/settings_toggle_button.js
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/date_time_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/date_time_page/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/default_browser_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/default_browser_page/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/device_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/device_page/compiled_resources2.gyp
[modify] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/device_page/display_size_slider.js
[modify] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/device_page/drag_behavior.js
[modify] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/device_page/layout_behavior.js
[modify] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/device_page/night_light_slider.js
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/downloads_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/downloads_page/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/google_assistant_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/google_assistant_page/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/incompatible_applications_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/incompatible_applications_page/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/internet_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/internet_page/compiled_resources2.gyp
[modify] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/internet_page/internet_config.js
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/languages_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/languages_page/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/multidevice_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/multidevice_page/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/on_startup_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/on_startup_page/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/passwords_and_forms_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/passwords_and_forms_page/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/people_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/people_page/compiled_resources2.gyp
[modify] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/people_page/fingerprint_progress_arc.js
[modify] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/people_page/setup_fingerprint_dialog.js
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/prefs/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/prefs/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/printing_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/printing_page/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/privacy_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/privacy_page/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/reset_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/reset_page/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/search_engines_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/search_engines_page/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/search_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/search_page/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/settings_main/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/settings_main/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/settings_menu/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/settings_menu/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/settings_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/settings_page/compiled_resources2.gyp
[modify] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/settings_page/settings_section.js
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/settings_ui/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/settings_ui/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/site_settings/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/site_settings/compiled_resources2.gyp
[modify] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/site_settings/site_settings_behavior.js
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/site_settings_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/site_settings_page/compiled_resources2.gyp
[add] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/chrome/browser/resources/settings/system_page/BUILD.gn
[delete] https://crrev.com/ff9926c746fcd530bb3768c9abb6132d96a33bc4/chrome/browser/resources/settings/system_page/compiled_resources2.gyp
[modify] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/third_party/closure_compiler/compiled_resources2.gyp
[modify] https://crrev.com/5138c9fbfd28e78e2c310fba503ab9a693e512c1/ui/webui/resources/cr_elements/policy/cr_policy_network_behavior.js

Project Member

Comment 47 by bugdroid1@chromium.org, May 4 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/1f314714604fdf36efe93efa8946a4731b9c9acc

commit 1f314714604fdf36efe93efa8946a4731b9c9acc
Author: Christopher Lam <calamity@chromium.org>
Date: Fri May 04 03:09:40 2018

Convert media_router Closure Compilation from GYP to GN.

See go/closure-compile-gn for details.

This CL converts the Closure Compilation of chrome://media-router from GYP
to GN, and fixes a number of type-checking issues that were somehow
suppressed due to the way the compiler used to be run.

A local closure compile can be run by setting closure_compile = true in
args.gn, and then running ninja -C out/Default webui_closure_compile.
A more localized compile may look like:
ninja -C out/Default chrome/browser/resources/media_router:closure_compile

Bug:  632206 

Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I3a41ec8701a68ae71fa2a613401daf213c41e0ff
Reviewed-on: https://chromium-review.googlesource.com/1036709
Commit-Queue: calamity <calamity@chromium.org>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: apacible <apacible@chromium.org>
Reviewed-by: calamity <calamity@chromium.org>
Cr-Commit-Position: refs/heads/master@{#555972}
[modify] https://crrev.com/1f314714604fdf36efe93efa8946a4731b9c9acc/chrome/browser/resources/BUILD.gn
[add] https://crrev.com/1f314714604fdf36efe93efa8946a4731b9c9acc/chrome/browser/resources/media_router/BUILD.gn
[delete] https://crrev.com/b5536353b8cb019e7fbc056790e490b1084ce143/chrome/browser/resources/media_router/compiled_resources2.gyp
[add] https://crrev.com/1f314714604fdf36efe93efa8946a4731b9c9acc/chrome/browser/resources/media_router/elements/issue_banner/BUILD.gn
[delete] https://crrev.com/b5536353b8cb019e7fbc056790e490b1084ce143/chrome/browser/resources/media_router/elements/issue_banner/compiled_resources2.gyp
[add] https://crrev.com/1f314714604fdf36efe93efa8946a4731b9c9acc/chrome/browser/resources/media_router/elements/media_router_container/BUILD.gn
[delete] https://crrev.com/b5536353b8cb019e7fbc056790e490b1084ce143/chrome/browser/resources/media_router/elements/media_router_container/compiled_resources2.gyp
[add] https://crrev.com/1f314714604fdf36efe93efa8946a4731b9c9acc/chrome/browser/resources/media_router/elements/media_router_header/BUILD.gn
[delete] https://crrev.com/b5536353b8cb019e7fbc056790e490b1084ce143/chrome/browser/resources/media_router/elements/media_router_header/compiled_resources2.gyp
[add] https://crrev.com/1f314714604fdf36efe93efa8946a4731b9c9acc/chrome/browser/resources/media_router/elements/media_router_search_highlighter/BUILD.gn
[delete] https://crrev.com/b5536353b8cb019e7fbc056790e490b1084ce143/chrome/browser/resources/media_router/elements/media_router_search_highlighter/compiled_resources2.gyp
[add] https://crrev.com/1f314714604fdf36efe93efa8946a4731b9c9acc/chrome/browser/resources/media_router/elements/route_controls/BUILD.gn
[delete] https://crrev.com/b5536353b8cb019e7fbc056790e490b1084ce143/chrome/browser/resources/media_router/elements/route_controls/compiled_resources2.gyp
[modify] https://crrev.com/1f314714604fdf36efe93efa8946a4731b9c9acc/chrome/browser/resources/media_router/elements/route_controls/route_controls.js
[add] https://crrev.com/1f314714604fdf36efe93efa8946a4731b9c9acc/chrome/browser/resources/media_router/elements/route_details/BUILD.gn
[delete] https://crrev.com/b5536353b8cb019e7fbc056790e490b1084ce143/chrome/browser/resources/media_router/elements/route_details/compiled_resources2.gyp
[modify] https://crrev.com/1f314714604fdf36efe93efa8946a4731b9c9acc/chrome/browser/resources/media_router/elements/route_details/route_details.js
[modify] https://crrev.com/1f314714604fdf36efe93efa8946a4731b9c9acc/third_party/closure_compiler/compiled_resources2.gyp

Project Member

Comment 48 by bugdroid1@chromium.org, May 8 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/7f9e09f0e58aab2f82d01adc1fbc49e15ad66ef8

commit 7f9e09f0e58aab2f82d01adc1fbc49e15ad66ef8
Author: Christopher Lam <calamity@chromium.org>
Date: Tue May 08 03:12:40 2018

Convert PDF Closure Compile to GN.

See go/closure-compile-gn for details.

This CL converts the Closure Compilation of the PDF viewer from GYP to
GN.

A local closure compile can be run by setting closure_compile = true in
args.gn, and then running ninja -C out/Default webui_closure_compile.
A more localized compile may look like:
ninja -C out/Default chrome/browser/resources/pdf:closure_compile

Bug:  632206 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I267f1ba4b25758e1677b83f0304d6d8a5ef5df36
Reviewed-on: https://chromium-review.googlesource.com/1036711
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: calamity <calamity@chromium.org>
Cr-Commit-Position: refs/heads/master@{#556665}
[modify] https://crrev.com/7f9e09f0e58aab2f82d01adc1fbc49e15ad66ef8/chrome/browser/resources/BUILD.gn
[add] https://crrev.com/7f9e09f0e58aab2f82d01adc1fbc49e15ad66ef8/chrome/browser/resources/pdf/BUILD.gn
[modify] https://crrev.com/7f9e09f0e58aab2f82d01adc1fbc49e15ad66ef8/chrome/browser/resources/pdf/compiled_resources2.gyp
[add] https://crrev.com/7f9e09f0e58aab2f82d01adc1fbc49e15ad66ef8/chrome/browser/resources/pdf/elements/viewer-bookmark/BUILD.gn
[delete] https://crrev.com/2d7301533446e61cc43730f9a39bf21e82f9ccf0/chrome/browser/resources/pdf/elements/viewer-bookmark/compiled_resources2.gyp
[add] https://crrev.com/7f9e09f0e58aab2f82d01adc1fbc49e15ad66ef8/chrome/browser/resources/pdf/elements/viewer-error-screen/BUILD.gn
[delete] https://crrev.com/2d7301533446e61cc43730f9a39bf21e82f9ccf0/chrome/browser/resources/pdf/elements/viewer-error-screen/compiled_resources2.gyp
[add] https://crrev.com/7f9e09f0e58aab2f82d01adc1fbc49e15ad66ef8/chrome/browser/resources/pdf/elements/viewer-page-indicator/BUILD.gn
[delete] https://crrev.com/2d7301533446e61cc43730f9a39bf21e82f9ccf0/chrome/browser/resources/pdf/elements/viewer-page-indicator/compiled_resources2.gyp
[add] https://crrev.com/7f9e09f0e58aab2f82d01adc1fbc49e15ad66ef8/chrome/browser/resources/pdf/elements/viewer-page-selector/BUILD.gn
[delete] https://crrev.com/2d7301533446e61cc43730f9a39bf21e82f9ccf0/chrome/browser/resources/pdf/elements/viewer-page-selector/compiled_resources2.gyp
[add] https://crrev.com/7f9e09f0e58aab2f82d01adc1fbc49e15ad66ef8/chrome/browser/resources/pdf/elements/viewer-password-screen/BUILD.gn
[delete] https://crrev.com/2d7301533446e61cc43730f9a39bf21e82f9ccf0/chrome/browser/resources/pdf/elements/viewer-password-screen/compiled_resources2.gyp
[modify] https://crrev.com/7f9e09f0e58aab2f82d01adc1fbc49e15ad66ef8/third_party/closure_compiler/compiled_resources2.gyp

I recently attempted to use closure compilation and was confused on why it was not working. I finally realized the problem was that I was building for Android; switching to Linux solved it. Would it be possible to allow closure compilation to run on all/most target platforms?
Let me know if I should file a new issue for this.
Project Member

Comment 50 by bugdroid1@chromium.org, May 10 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/bb76d48a8e1faa633fa54aac6d5ec96feea8d505

commit bb76d48a8e1faa633fa54aac6d5ec96feea8d505
Author: Christopher Lam <calamity@chromium.org>
Date: Thu May 10 05:10:27 2018

Convert Print Preview Closure Compile to GN.

See go/closure-compile-gn for details.

This CL converts the Closure Compilation of print preview from GYP to
GN. It also fixes a number of incorrect annotations surfaced by the
migration.

A local closure compile can be run by setting closure_compile = true in
args.gn, and then running ninja -C out/Default webui_closure_compile.
A more localized compile may look like:
ninja -C out/Default chrome/browser/resources/print_preview:closure_compile

Bug:  632206 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: Ifecaf4ac8f9f082060e28acb3eac613a1d98a931
Reviewed-on: https://chromium-review.googlesource.com/1041605
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: calamity <calamity@chromium.org>
Cr-Commit-Position: refs/heads/master@{#557454}
[modify] https://crrev.com/bb76d48a8e1faa633fa54aac6d5ec96feea8d505/chrome/browser/resources/BUILD.gn
[delete] https://crrev.com/ddc703612cae77cfe34e9790bcf3c85b36353261/chrome/browser/resources/pdf/compiled_resources2.gyp
[modify] https://crrev.com/bb76d48a8e1faa633fa54aac6d5ec96feea8d505/chrome/browser/resources/print_preview/BUILD.gn
[delete] https://crrev.com/ddc703612cae77cfe34e9790bcf3c85b36353261/chrome/browser/resources/print_preview/compiled_resources2.gyp
[modify] https://crrev.com/bb76d48a8e1faa633fa54aac6d5ec96feea8d505/chrome/browser/resources/print_preview/component.js
[add] https://crrev.com/bb76d48a8e1faa633fa54aac6d5ec96feea8d505/chrome/browser/resources/print_preview/data/BUILD.gn
[delete] https://crrev.com/ddc703612cae77cfe34e9790bcf3c85b36353261/chrome/browser/resources/print_preview/data/compiled_resources2.gyp
[modify] https://crrev.com/bb76d48a8e1faa633fa54aac6d5ec96feea8d505/chrome/browser/resources/print_preview/data/destination_store.js
[modify] https://crrev.com/bb76d48a8e1faa633fa54aac6d5ec96feea8d505/chrome/browser/resources/print_preview/data/ticket_items/dpi.js
[modify] https://crrev.com/bb76d48a8e1faa633fa54aac6d5ec96feea8d505/chrome/browser/resources/print_preview/data/ticket_items/media_size.js
[add] https://crrev.com/bb76d48a8e1faa633fa54aac6d5ec96feea8d505/chrome/browser/resources/print_preview/new/BUILD.gn
[delete] https://crrev.com/ddc703612cae77cfe34e9790bcf3c85b36353261/chrome/browser/resources/print_preview/new/compiled_resources2.gyp
[modify] https://crrev.com/bb76d48a8e1faa633fa54aac6d5ec96feea8d505/chrome/browser/resources/print_preview/print_preview.js
[modify] https://crrev.com/bb76d48a8e1faa633fa54aac6d5ec96feea8d505/chrome/browser/resources/print_preview/settings/advanced_settings/advanced_settings_item.js
[modify] https://crrev.com/bb76d48a8e1faa633fa54aac6d5ec96feea8d505/chrome/browser/resources/print_preview/settings/layout_settings.js
[modify] https://crrev.com/bb76d48a8e1faa633fa54aac6d5ec96feea8d505/chrome/browser/resources/print_preview/settings/margin_settings.js
[modify] https://crrev.com/bb76d48a8e1faa633fa54aac6d5ec96feea8d505/chrome/browser/resources/print_preview/settings/other_options_settings.js
[modify] https://crrev.com/bb76d48a8e1faa633fa54aac6d5ec96feea8d505/chrome/browser/resources/print_preview/settings/scaling_settings.js
[modify] https://crrev.com/bb76d48a8e1faa633fa54aac6d5ec96feea8d505/chrome/browser/resources/print_preview/settings/settings_section_select.js
[delete] https://crrev.com/ddc703612cae77cfe34e9790bcf3c85b36353261/third_party/closure_compiler/build/get_includes.py
[modify] https://crrev.com/bb76d48a8e1faa633fa54aac6d5ec96feea8d505/third_party/closure_compiler/compiled_resources2.gyp

#49: In general the compilation should work wherever the WebUI exists. However, some conditions may not be correct, so do feel free to change the compile platforms of WebUIs if they're wrong. Thanks!
Project Member

Comment 52 by bugdroid1@chromium.org, May 15 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/8aea1de097fb16b6517bf03b5219ca73df0b9646

commit 8aea1de097fb16b6517bf03b5219ca73df0b9646
Author: Christopher Lam <calamity@chromium.org>
Date: Tue May 15 07:59:05 2018

Fix Interface JS externs generation for mojo.

This CL fixes an issue with JS externs generation for Interface types
in mojo. This was blocking
https://chromium-review.googlesource.com/c/chromium/src/+/1053381.

Bug:  632206 
Change-Id: I164bc3d9e9b0fd43f438dfefeaa2bc6e731fd1e7
Reviewed-on: https://chromium-review.googlesource.com/1053332
Reviewed-by: Sam McNally <sammc@chromium.org>
Reviewed-by: Ken Rockot <rockot@chromium.org>
Commit-Queue: calamity <calamity@chromium.org>
Cr-Commit-Position: refs/heads/master@{#558637}
[modify] https://crrev.com/8aea1de097fb16b6517bf03b5219ca73df0b9646/mojo/public/tools/bindings/generators/mojom_js_generator.py

Project Member

Comment 53 by bugdroid1@chromium.org, May 17 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/7c7d8f97513b5028ddd5543e5cf11974cf75cd8f

commit 7c7d8f97513b5028ddd5543e5cf11974cf75cd8f
Author: Christopher Lam <calamity@chromium.org>
Date: Thu May 17 09:07:55 2018

Convert remaining non-CrOS Closure Compiles to GN.

See go/closure-compile-gn for details.

This CL converts ntp4 and offline_pages to GN Closure compilation. It
also deletes the webstore_widget GYP file which is no longer used.

A local closure compile can be run by setting closure_compile = true in
args.gn, and then running ninja -C out/Default webui_closure_compile.
A more localized compile may look like:
ninja -C out/Default chrome/browser/resources/ntp4:closure_compile

TBR=fukino@chromium.org

Bug:  632206 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: Id6f4c248eaf19a63084e1734bc987b5f8a7c11fc
Reviewed-on: https://chromium-review.googlesource.com/1049209
Reviewed-by: calamity <calamity@chromium.org>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: Scott Graham <scottmg@chromium.org>
Reviewed-by: Justin DeWitt <dewittj@chromium.org>
Commit-Queue: calamity <calamity@chromium.org>
Cr-Commit-Position: refs/heads/master@{#559464}
[modify] https://crrev.com/7c7d8f97513b5028ddd5543e5cf11974cf75cd8f/BUILD.gn
[modify] https://crrev.com/7c7d8f97513b5028ddd5543e5cf11974cf75cd8f/chrome/browser/resources/BUILD.gn
[add] https://crrev.com/7c7d8f97513b5028ddd5543e5cf11974cf75cd8f/chrome/browser/resources/ntp4/BUILD.gn
[modify] https://crrev.com/7c7d8f97513b5028ddd5543e5cf11974cf75cd8f/chrome/browser/resources/ntp4/apps_page.js
[delete] https://crrev.com/58e3dc5dd341925a26ccec2eeee238c4969384c9/chrome/browser/resources/ntp4/compiled_resources2.gyp
[delete] https://crrev.com/58e3dc5dd341925a26ccec2eeee238c4969384c9/components/chrome_apps/webstore_widget/externs/compiled_resources2.gyp
[add] https://crrev.com/7c7d8f97513b5028ddd5543e5cf11974cf75cd8f/components/offline_pages/resources/BUILD.gn
[delete] https://crrev.com/58e3dc5dd341925a26ccec2eeee238c4969384c9/components/offline_pages/resources/compiled_resources2.gyp
[modify] https://crrev.com/7c7d8f97513b5028ddd5543e5cf11974cf75cd8f/components/offline_pages/resources/renovations.js
[modify] https://crrev.com/7c7d8f97513b5028ddd5543e5cf11974cf75cd8f/third_party/closure_compiler/compiled_resources2.gyp

Project Member

Comment 54 by bugdroid1@chromium.org, Jun 12 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/69c1aef3de93e0011a11f91d53f899a9956e29e4

commit 69c1aef3de93e0011a11f91d53f899a9956e29e4
Author: Christopher Lam <calamity@chromium.org>
Date: Tue Jun 12 04:54:01 2018

Convert ChromeOS resources Closure Compile to GN.

See go/closure-compile-gn for details.

This CL converts the Closure Compilation of ChromeOS resources from GYP to
GN.

A local closure compile can be run by setting closure_compile = true in
args.gn, and then running ninja -C out/Default webui_closure_compile.
A more localized compile may look like:
ninja -C out/Default chrome/browser/resources/chromeos:closure_compile

TBR=dpranke@chromium.org, dpapad@chromium.org
TEST=Running the compilation with a type mismatch should cause a failure.

Bug:  632206 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: If1656b63a5571a00f54a913d5295231970eba44e
Reviewed-on: https://chromium-review.googlesource.com/1049350
Commit-Queue: calamity <calamity@chromium.org>
Reviewed-by: Achuith Bhandarkar <achuith@chromium.org>
Cr-Commit-Position: refs/heads/master@{#566316}
[modify] https://crrev.com/69c1aef3de93e0011a11f91d53f899a9956e29e4/chrome/BUILD.gn
[modify] https://crrev.com/69c1aef3de93e0011a11f91d53f899a9956e29e4/chrome/browser/resources/BUILD.gn
[modify] https://crrev.com/69c1aef3de93e0011a11f91d53f899a9956e29e4/chrome/browser/resources/chromeos/BUILD.gn
[modify] https://crrev.com/69c1aef3de93e0011a11f91d53f899a9956e29e4/chrome/browser/resources/chromeos/bluetooth_pairing_dialog/BUILD.gn
[delete] https://crrev.com/300c6052043f60782f89a471135218ac5cfb340f/chrome/browser/resources/chromeos/bluetooth_pairing_dialog/compiled_resources2.gyp
[modify] https://crrev.com/69c1aef3de93e0011a11f91d53f899a9956e29e4/chrome/browser/resources/chromeos/braille_ime/BUILD.gn
[delete] https://crrev.com/300c6052043f60782f89a471135218ac5cfb340f/chrome/browser/resources/chromeos/braille_ime/compiled_resources2.gyp
[add] https://crrev.com/69c1aef3de93e0011a11f91d53f899a9956e29e4/chrome/browser/resources/chromeos/chromevox/common/BUILD.gn
[delete] https://crrev.com/300c6052043f60782f89a471135218ac5cfb340f/chrome/browser/resources/chromeos/chromevox/common/compiled_resources2.gyp
[delete] https://crrev.com/300c6052043f60782f89a471135218ac5cfb340f/chrome/browser/resources/chromeos/compiled_resources2.gyp
[modify] https://crrev.com/69c1aef3de93e0011a11f91d53f899a9956e29e4/chrome/browser/resources/chromeos/internet_config_dialog/BUILD.gn
[delete] https://crrev.com/300c6052043f60782f89a471135218ac5cfb340f/chrome/browser/resources/chromeos/internet_config_dialog/compiled_resources2.gyp
[modify] https://crrev.com/69c1aef3de93e0011a11f91d53f899a9956e29e4/chrome/browser/resources/chromeos/internet_detail_dialog/BUILD.gn
[delete] https://crrev.com/300c6052043f60782f89a471135218ac5cfb340f/chrome/browser/resources/chromeos/internet_detail_dialog/compiled_resources2.gyp
[add] https://crrev.com/69c1aef3de93e0011a11f91d53f899a9956e29e4/chrome/browser/resources/chromeos/login/BUILD.gn
[delete] https://crrev.com/300c6052043f60782f89a471135218ac5cfb340f/chrome/browser/resources/chromeos/login/compiled_resources2.gyp
[add] https://crrev.com/69c1aef3de93e0011a11f91d53f899a9956e29e4/chrome/browser/resources/chromeos/multidevice_setup/BUILD.gn
[delete] https://crrev.com/300c6052043f60782f89a471135218ac5cfb340f/chrome/browser/resources/chromeos/multidevice_setup/compiled_resources2.gyp
[add] https://crrev.com/69c1aef3de93e0011a11f91d53f899a9956e29e4/chrome/browser/resources/chromeos/network_ui/BUILD.gn
[delete] https://crrev.com/300c6052043f60782f89a471135218ac5cfb340f/chrome/browser/resources/chromeos/network_ui/compiled_resources2.gyp
[modify] https://crrev.com/69c1aef3de93e0011a11f91d53f899a9956e29e4/chrome/browser/resources/chromeos/select_to_speak/BUILD.gn
[delete] https://crrev.com/300c6052043f60782f89a471135218ac5cfb340f/chrome/browser/resources/chromeos/select_to_speak/compiled_resources2.gyp
[modify] https://crrev.com/69c1aef3de93e0011a11f91d53f899a9956e29e4/chrome/browser/resources/chromeos/switch_access/BUILD.gn
[delete] https://crrev.com/300c6052043f60782f89a471135218ac5cfb340f/chrome/browser/resources/chromeos/switch_access/compiled_resources2.gyp
[add] https://crrev.com/69c1aef3de93e0011a11f91d53f899a9956e29e4/chrome/browser/resources/chromeos/sys_internals/BUILD.gn
[delete] https://crrev.com/300c6052043f60782f89a471135218ac5cfb340f/chrome/browser/resources/chromeos/sys_internals/compiled_resources2.gyp
[add] https://crrev.com/69c1aef3de93e0011a11f91d53f899a9956e29e4/chrome/browser/resources/chromeos/sys_internals/line_chart/BUILD.gn
[delete] https://crrev.com/300c6052043f60782f89a471135218ac5cfb340f/chrome/browser/resources/chromeos/sys_internals/line_chart/compiled_resources2.gyp
[modify] https://crrev.com/69c1aef3de93e0011a11f91d53f899a9956e29e4/third_party/closure_compiler/compiled_resources2.gyp

Project Member

Comment 55 by bugdroid1@chromium.org, Jun 14 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/213440d1d0889827f58250bbabb224e47fc9f69a

commit 213440d1d0889827f58250bbabb224e47fc9f69a
Author: Christopher Lam <calamity@chromium.org>
Date: Thu Jun 14 03:26:18 2018

[Closure Compile GN] Update Closure docs.

This CL updates Chromium Closure Compilation docs to use GN-based
compilation.

Bug:  632206 
Change-Id: Ie3aef4b7f81744e04051489731acf4e7aa80da15
Reviewed-on: https://chromium-review.googlesource.com/1098749
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: calamity <calamity@chromium.org>
Cr-Commit-Position: refs/heads/master@{#567116}
[modify] https://crrev.com/213440d1d0889827f58250bbabb224e47fc9f69a/docs/closure_compilation.md
[modify] https://crrev.com/213440d1d0889827f58250bbabb224e47fc9f69a/styleguide/web/web.md

Project Member

Comment 56 by bugdroid1@chromium.org, Jun 20 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/7787593dc70315ae5dfad94136013d10f36f1f82

commit 7787593dc70315ae5dfad94136013d10f36f1f82
Author: Christopher Lam <calamity@chromium.org>
Date: Wed Jun 20 08:32:50 2018

[Closure Compile GN] Remove remaining compiled_resources2.gyp files.

This CL removes all compiled_resources2.gyp files from ui/webui and
third_party/polymer, and removes the script that generates them for
Polymer Elements.

TBR=jochen@chromium.org

Bug:  632206 
Cq-Include-Trybots: luci.chromium.try:closure_compilation
Change-Id: I1866d4e682e41c462958ac1185b6cb7e70cb7130
Reviewed-on: https://chromium-review.googlesource.com/1105677
Commit-Queue: calamity <calamity@chromium.org>
Reviewed-by: calamity <calamity@chromium.org>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#568766}
[modify] https://crrev.com/7787593dc70315ae5dfad94136013d10f36f1f82/chrome/browser/resources/settings/a11y_page/externs.js
[modify] https://crrev.com/7787593dc70315ae5dfad94136013d10f36f1f82/third_party/closure_compiler/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/closure_compiler/externs/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/closure_compiler/interfaces/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/jstemplate/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/iron-a11y-announcer/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/iron-a11y-keys-behavior/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/iron-a11y-keys/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/iron-autogrow-textarea/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/iron-behaviors/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/iron-checked-element-behavior/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/iron-collapse/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/iron-dropdown/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/iron-fit-behavior/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/iron-form-element-behavior/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/iron-icon/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/iron-iconset-svg/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/iron-input/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/iron-list/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/iron-location/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/iron-media-query/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/iron-menu-behavior/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/iron-meta/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/iron-overlay-behavior/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/iron-pages/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/iron-range-behavior/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/iron-resizable-behavior/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/iron-scroll-target-behavior/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/iron-scroll-threshold/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/iron-selector/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/iron-validatable-behavior/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/neon-animation/animations/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/neon-animation/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/paper-behaviors/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/paper-button/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/paper-fab/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/paper-icon-button/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/paper-input/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/paper-item/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/paper-listbox/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/paper-progress/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/paper-radio-group/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/paper-ripple/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/paper-slider/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/paper-spinner/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/paper-tabs/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/components-chromium/paper-tooltip/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/third_party/polymer/v1_0/generate_gyp.sh
[modify] https://crrev.com/7787593dc70315ae5dfad94136013d10f36f1f82/third_party/polymer/v1_0/reproduce.sh
[modify] https://crrev.com/7787593dc70315ae5dfad94136013d10f36f1f82/third_party/polymer/v1_0/rsync_exclude.txt
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/tools/polymer/generate_compiled_resources_gyp.py
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/ui/webui/resources/cr_components/certificate_manager/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/ui/webui/resources/cr_components/chromeos/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/ui/webui/resources/cr_components/chromeos/network/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/ui/webui/resources/cr_components/chromeos/quick_unlock/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/ui/webui/resources/cr_components/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/ui/webui/resources/cr_elements/chromeos/cr_picture/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/ui/webui/resources/cr_elements/chromeos/network/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/ui/webui/resources/cr_elements/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/ui/webui/resources/cr_elements/cr_action_menu/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/ui/webui/resources/cr_elements/cr_checkbox/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/ui/webui/resources/cr_elements/cr_dialog/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/ui/webui/resources/cr_elements/cr_drawer/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/ui/webui/resources/cr_elements/cr_expand_button/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/ui/webui/resources/cr_elements/cr_lazy_render/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/ui/webui/resources/cr_elements/cr_link_row/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/ui/webui/resources/cr_elements/cr_profile_avatar_selector/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/ui/webui/resources/cr_elements/cr_radio_button/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/ui/webui/resources/cr_elements/cr_search_field/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/ui/webui/resources/cr_elements/cr_toast/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/ui/webui/resources/cr_elements/cr_toggle/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/ui/webui/resources/cr_elements/cr_toolbar/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/ui/webui/resources/cr_elements/policy/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/ui/webui/resources/js/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/ui/webui/resources/js/cr/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/ui/webui/resources/js/cr/ui/compiled_resources2.gyp
[delete] https://crrev.com/325db0a5afc2f960d20f2ccfed8b995132ab791c/ui/webui/resources/js/cr/ui/table/compiled_resources2.gyp

Project Member

Comment 57 by bugdroid1@chromium.org, Jun 27 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/48a64cdca29f6357b523225960bdbb20eee6bc9b

commit 48a64cdca29f6357b523225960bdbb20eee6bc9b
Author: Jordy Greenblatt <jordynass@chromium.org>
Date: Wed Jun 27 00:56:53 2018

[CrOS MultiDevice]: Fixed closure checks

In earlier CLs I hadn't matched the migration away from GYP to GN in
the Settings UI closure compilation. This is that migration for
the multidevice folder.


Bug:  632206 
Cq-Include-Trybots: luci.chromium.try:closure_compilation
Change-Id: I2ad09426c87c5453b26e0a7d5bbe3957ccc0a1ca
Reviewed-on: https://chromium-review.googlesource.com/1115758
Reviewed-by: Kyle Horimoto <khorimoto@chromium.org>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Jordy Greenblatt <jordynass@chromium.org>
Cr-Commit-Position: refs/heads/master@{#570602}
[modify] https://crrev.com/48a64cdca29f6357b523225960bdbb20eee6bc9b/chrome/browser/resources/settings/BUILD.gn
[modify] https://crrev.com/48a64cdca29f6357b523225960bdbb20eee6bc9b/chrome/browser/resources/settings/multidevice_page/BUILD.gn
[modify] https://crrev.com/48a64cdca29f6357b523225960bdbb20eee6bc9b/chrome/browser/resources/settings/multidevice_page/multidevice_page.html
[modify] https://crrev.com/48a64cdca29f6357b523225960bdbb20eee6bc9b/chrome/browser/resources/settings/multidevice_page/multidevice_page.js

Project Member

Comment 58 by bugdroid1@chromium.org, Jul 3

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/tools/build/+/e2db2be9b645f5c3ad308df614303d766e60bc15

commit e2db2be9b645f5c3ad308df614303d766e60bc15
Author: Christopher Lam <calamity@chromium.org>
Date: Tue Jul 03 05:50:28 2018

Remove Closure Compilation step from Closure Bot.

This CL removes the Closure Compilation step from the Closure Compilation Bot
as the third_party/closure_compiler/compiled_resources2.gyp file is now
empty, and all Closure Compilation is done on the vanilla CQ.

This Bot cannot be removed until the Closure Tests under run_tests on this
bot are migrated to other bots.

Bug:  632206 
Change-Id: I09747e79ca183764dcb471f5b76ed59ca97eb83b
Reviewed-on: https://chromium-review.googlesource.com/1118059
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Commit-Queue: calamity <calamity@chromium.org>

[modify] https://crrev.com/e2db2be9b645f5c3ad308df614303d766e60bc15/scripts/slave/recipes/closure_compilation.expected/closure_compilation_fyi.json
[modify] https://crrev.com/e2db2be9b645f5c3ad308df614303d766e60bc15/scripts/slave/recipes/closure_compilation.expected/closure_compilation_try.json
[modify] https://crrev.com/e2db2be9b645f5c3ad308df614303d766e60bc15/scripts/slave/recipes/closure_compilation.py

Cc: jordynass@chromium.org
@calamity: Something is wrong with the closure_compilation tryjob. It keeps failing. Can you take a look? This is preventing CLs from landing.

https://ci.chromium.org/p/chromium/builders/luci.chromium.try/closure_compilation
Should authors of pending CLs that already have the following line in their CL description

Cq-Include-Trybots: luci.chromium.try:closure_compilation 

manually update their CLs? It would be nice to send a PSA if that's the case.
Labels: -Pri-3 Pri-1
Bumping up priority because of the issue at comment #59. This is affecting multiple developers.
Project Member

Comment 62 by bugdroid1@chromium.org, Jul 4

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/tools/build/+/d1d27e071e04183cc3077ce8d150e56825228d0a

commit d1d27e071e04183cc3077ce8d150e56825228d0a
Author: calamity <calamity@chromium.org>
Date: Wed Jul 04 00:29:26 2018

Revert "Remove Closure Compilation step from Closure Bot."

This reverts commit e2db2be9b645f5c3ad308df614303d766e60bc15.

Reason for revert: Broke Closure Bots

Original change's description:
> Remove Closure Compilation step from Closure Bot.
>
> This CL removes the Closure Compilation step from the Closure Compilation Bot
> as the third_party/closure_compiler/compiled_resources2.gyp file is now
> empty, and all Closure Compilation is done on the vanilla CQ.
>
> This Bot cannot be removed until the Closure Tests under run_tests on this
> bot are migrated to other bots.
>
> Bug:  632206 
> Change-Id: I09747e79ca183764dcb471f5b76ed59ca97eb83b
> Reviewed-on: https://chromium-review.googlesource.com/1118059
> Reviewed-by: Dirk Pranke <dpranke@chromium.org>
> Commit-Queue: calamity <calamity@chromium.org>

TBR=calamity@chromium.org,dpranke@chromium.org

Change-Id: Ibbfc36cb5af3e00da827d70ba14a9863875287b3
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug:  632206 
Reviewed-on: https://chromium-review.googlesource.com/1124139
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: John Budorick <jbudorick@chromium.org>

[modify] https://crrev.com/d1d27e071e04183cc3077ce8d150e56825228d0a/scripts/slave/recipes/closure_compilation.expected/closure_compilation_fyi.json
[modify] https://crrev.com/d1d27e071e04183cc3077ce8d150e56825228d0a/scripts/slave/recipes/closure_compilation.expected/closure_compilation_try.json
[modify] https://crrev.com/d1d27e071e04183cc3077ce8d150e56825228d0a/scripts/slave/recipes/closure_compilation.py

Project Member

Comment 63 by bugdroid1@chromium.org, Jul 17

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/tools/build/+/11e7df8209cbfb882380437ec30b186d8b5c271b

commit 11e7df8209cbfb882380437ec30b186d8b5c271b
Author: Christopher Lam <calamity@chromium.org>
Date: Tue Jul 17 01:43:25 2018

Reland Remove Closure Compilation step from Closure Bot.

This CL removes the Closure Compilation step from the Closure Compilation Bot
as the third_party/closure_compiler/compiled_resources2.gyp file is now
empty, and all Closure Compilation is done on the vanilla CQ.

This Bot cannot be fully removed until the Closure Tests under run_tests on this
bot are migrated to other bots.

Relanded with the compile step removed as well, as this was breaking the bots
due to lack of a GYP generation. Original CL at
https://chromium-review.googlesource.com/c/chromium/tools/build/+/1118059.

Bug:  632206 
Change-Id: I050141060e590f83bfef6992b5ae9c10acaf14f4
Reviewed-on: https://chromium-review.googlesource.com/1124206
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: calamity <calamity@chromium.org>

[modify] https://crrev.com/11e7df8209cbfb882380437ec30b186d8b5c271b/scripts/slave/recipes/closure_compilation.expected/closure_compilation_fyi.json
[modify] https://crrev.com/11e7df8209cbfb882380437ec30b186d8b5c271b/scripts/slave/recipes/closure_compilation.expected/closure_compilation_try.json
[modify] https://crrev.com/11e7df8209cbfb882380437ec30b186d8b5c271b/scripts/slave/recipes/closure_compilation.py

Project Member

Comment 64 by bugdroid1@chromium.org, Jul 18

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/c75667497914dbdc0df8fb05fc15d230e2f6385c

commit c75667497914dbdc0df8fb05fc15d230e2f6385c
Author: Christopher Lam <calamity@chromium.org>
Date: Wed Jul 18 03:02:06 2018

[Closure Compiler GN] Enable checks_only flag for type checking compilations.

This CL adds the checks_only flag to JS Closure Compilations that are only
doing type checking to improve build time.

Before:
5869.41s user 189.50s system 3350% cpu
5861.34s user 190.37s system 3284% cpu

After:
4143.98s user 159.46s system 3020% cpu
4184.40s user 158.95s system 3073% cpu

Bug:  632206 
Cq-Include-Trybots: luci.chromium.try:closure_compilation
Change-Id: I68ebdce5a4cf98176d3f55b971e33fc62848d2d4
Reviewed-on: https://chromium-review.googlesource.com/1139840
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: calamity <calamity@chromium.org>
Cr-Commit-Position: refs/heads/master@{#575918}
[modify] https://crrev.com/c75667497914dbdc0df8fb05fc15d230e2f6385c/third_party/closure_compiler/compile_js.gni
[modify] https://crrev.com/c75667497914dbdc0df8fb05fc15d230e2f6385c/third_party/closure_compiler/js_binary.py

Project Member

Comment 65 by bugdroid1@chromium.org, Jul 19

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/555552020f1ae88a15b2f7d0ba2ea8f29c302efd

commit 555552020f1ae88a15b2f7d0ba2ea8f29c302efd
Author: Christopher Lam <calamity@chromium.org>
Date: Thu Jul 19 04:30:35 2018

Remove all remaining GYP Closure Compilation.

See go/closure-compile-gn for details.

This CL removes all remaining traces of GYP Closure Compilation. This
includes:
- all compiled_resources2.gyp files from ui/webui
- all PRESUBMITs that add the closure_compilation bot
- the closure_compilation bot in all build systems
- some GYP tooling that is only used for closure compilation builders

TBR=sashab@chromium.org

Bug:  632206 
Cq-Include-Trybots: luci.chromium.try:closure_compilation
Change-Id: Ief58c91d43ed859d5b4022dd30e7d5507dd7909b
Reviewed-on: https://chromium-review.googlesource.com/1051144
Commit-Queue: calamity <calamity@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#576368}
[modify] https://crrev.com/555552020f1ae88a15b2f7d0ba2ea8f29c302efd/chrome/browser/resources/PRESUBMIT.py
[delete] https://crrev.com/c740def6535dde84fa73d94784690151ef28a079/third_party/closure_compiler/compile_js2.gypi
[delete] https://crrev.com/c740def6535dde84fa73d94784690151ef28a079/third_party/closure_compiler/compiled_resources2.gyp
[delete] https://crrev.com/c740def6535dde84fa73d94784690151ef28a079/third_party/closure_compiler/include_js.gypi
[delete] https://crrev.com/c740def6535dde84fa73d94784690151ef28a079/third_party/closure_compiler/run_compiler
[delete] https://crrev.com/c740def6535dde84fa73d94784690151ef28a079/third_party/closure_compiler/tools/create_include_gyp.py
[modify] https://crrev.com/555552020f1ae88a15b2f7d0ba2ea8f29c302efd/ui/file_manager/PRESUBMIT.py
[delete] https://crrev.com/c740def6535dde84fa73d94784690151ef28a079/ui/file_manager/compile_js2.gypi
[modify] https://crrev.com/555552020f1ae88a15b2f7d0ba2ea8f29c302efd/ui/webui/resources/PRESUBMIT.py

Status: Fixed (was: Started)
I feel like I can close this.

There's still the bot removal to do, but all in all, this is Fixed.

Woo!
\o/ pour one out!

Sign in to add a comment