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

Issue 405743002: Typecheck some of ui/webui/resources/js/ with Closure compiler. (Closed)

Created:
6 years, 5 months ago by Dan Beam
Modified:
6 years, 4 months ago
CC:
chromium-reviews, oshima+watch_chromium.org, stevenjb+watch_chromium.org, Vitaly Pavlenko
Project:
chromium
Visibility:
Public.

Description

Typecheck some of ui/webui/resources/js/ with Closure compiler. Also adds: assertNotReached("message"); as a rough equivalent of NOTREACHED() << "message"; in Chromium and: ASSERT_NOT_REACHED(); in blink. R=arv@chromium.org BUG=393873 TEST=gyp --depth . ui/webui/resources/js/compiled_resources.gyp ui/webui/resources/js/chromeos/compiled_resources.gyp && ninja -C out/Default/ Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287403

Patch Set 1 : done for tonight #

Total comments: 27

Patch Set 2 : review feedback #

Total comments: 2

Patch Set 3 : arv@ review #

Patch Set 4 : fixes #

Patch Set 5 : print_preview test fixes? #

Patch Set 6 : owners #

Patch Set 7 : compile fixes #

Patch Set 8 : gyp #

Patch Set 9 : split #

Patch Set 10 : cr fixes #

Patch Set 11 : cr.isMac fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -162 lines) Patch
M chrome/browser/resources/extensions/extension_error_overlay.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/ntp4/tile_page.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/options/browser_options.js View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M chrome/test/data/webui/link_controller_test.html View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -4 lines 0 comments Download
M third_party/closure_compiler/checker.py View 8 1 chunk +2 lines, -0 lines 0 comments Download
A + third_party/closure_compiler/externs/chrome_send_externs.js View 1 chunk +7 lines, -3 lines 0 comments Download
A third_party/closure_compiler/externs/pending_compiler_externs.js View 1 chunk +15 lines, -0 lines 0 comments Download
M ui/webui/resources/js/assert.js View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
M ui/webui/resources/js/chromeos/ui_account_tweaks.js View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -5 lines 0 comments Download
M ui/webui/resources/js/cr.js View 1 2 3 4 5 6 7 8 9 9 chunks +49 lines, -69 lines 0 comments Download
M ui/webui/resources/js/event_tracker.js View 2 chunks +28 lines, -25 lines 0 comments Download
M ui/webui/resources/js/i18n_template.js View 4 chunks +12 lines, -5 lines 0 comments Download
M ui/webui/resources/js/i18n_template_no_process.js View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/webui/resources/js/load_time_data.js View 5 chunks +13 lines, -9 lines 0 comments Download
M ui/webui/resources/js/local_strings.js View 1 4 chunks +12 lines, -9 lines 0 comments Download
M ui/webui/resources/js/parse_html_subset.js View 1 chunk +2 lines, -1 line 0 comments Download
A + ui/webui/resources/js/template_data_externs.js View 1 2 1 chunk +4 lines, -5 lines 0 comments Download
M ui/webui/resources/js/util.js View 8 chunks +15 lines, -19 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
Dan Beam
+arv@ for review, +vitalyp@ fyi
6 years, 5 months ago (2014-07-24 04:09:49 UTC) #1
arv (Not doing code reviews)
Nice work. A few issues... https://codereview.chromium.org/405743002/diff/180001/ui/webui/resources/js/assert.js File ui/webui/resources/js/assert.js (right): https://codereview.chromium.org/405743002/diff/180001/ui/webui/resources/js/assert.js#newcode30 ui/webui/resources/js/assert.js:30: function notReached(opt_message) { How ...
6 years, 5 months ago (2014-07-24 16:44:24 UTC) #2
Dan Beam
https://codereview.chromium.org/405743002/diff/180001/ui/webui/resources/js/assert.js File ui/webui/resources/js/assert.js (right): https://codereview.chromium.org/405743002/diff/180001/ui/webui/resources/js/assert.js#newcode30 ui/webui/resources/js/assert.js:30: function notReached(opt_message) { On 2014/07/24 16:44:24, arv wrote: > ...
6 years, 5 months ago (2014-07-25 01:52:33 UTC) #3
arv (Not doing code reviews)
https://codereview.chromium.org/405743002/diff/180001/ui/webui/resources/js/load_time_data.js File ui/webui/resources/js/load_time_data.js (right): https://codereview.chromium.org/405743002/diff/180001/ui/webui/resources/js/load_time_data.js#newcode16 ui/webui/resources/js/load_time_data.js:16: // https://github.com/google/closure-compiler/issues/544 is fixed. On 2014/07/25 01:52:33, Dan Beam ...
6 years, 5 months ago (2014-07-25 18:27:13 UTC) #4
Dan Beam
https://codereview.chromium.org/405743002/diff/180001/ui/webui/resources/js/template_data_externs.js File ui/webui/resources/js/template_data_externs.js (right): https://codereview.chromium.org/405743002/diff/180001/ui/webui/resources/js/template_data_externs.js#newcode11 ui/webui/resources/js/template_data_externs.js:11: window.templateData; On 2014/07/25 18:27:13, arv wrote: > On 2014/07/25 ...
6 years, 5 months ago (2014-07-25 21:58:18 UTC) #5
arv (Not doing code reviews)
LGTM
6 years, 5 months ago (2014-07-25 22:04:18 UTC) #6
Dan Beam
The CQ bit was checked by dbeam@chromium.org
6 years, 5 months ago (2014-07-25 23:07:09 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dbeam@chromium.org/405743002/260001
6 years, 5 months ago (2014-07-25 23:08:50 UTC) #8
Dan Beam
The CQ bit was unchecked by dbeam@chromium.org
6 years, 5 months ago (2014-07-26 02:09:30 UTC) #9
Dan Beam
The CQ bit was checked by dbeam@chromium.org
6 years, 5 months ago (2014-07-26 02:11:08 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dbeam@chromium.org/405743002/260001
6 years, 5 months ago (2014-07-26 05:00:25 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium.linux ...
6 years, 5 months ago (2014-07-26 11:11:49 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-26 12:19:29 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel/builds/79)
6 years, 5 months ago (2014-07-26 12:19:30 UTC) #14
Dan Beam
+darin@ for compiled_resources.json (would you prefer this be somewhere else?)
6 years, 4 months ago (2014-07-29 03:49:20 UTC) #15
Dan Beam
On 2014/07/29 03:49:20, Dan Beam wrote: > +darin@ for compiled_resources.json (would you prefer this be ...
6 years, 4 months ago (2014-07-30 01:42:33 UTC) #16
darin (slow to review)
Why does it make sense for compiled_resources.json to live in the root directory? It mostly ...
6 years, 4 months ago (2014-07-30 20:49:27 UTC) #17
Dan Beam
On 2014/07/30 20:49:27, darin wrote: > Why does it make sense for compiled_resources.json to live ...
6 years, 4 months ago (2014-07-30 21:15:37 UTC) #18
darin (slow to review)
Shouldn't each of those directories have its own build rules? On Wed, Jul 30, 2014 ...
6 years, 4 months ago (2014-07-30 21:52:47 UTC) #19
Dan Beam
On 2014/07/30 21:52:47, darin wrote: > Shouldn't each of those directories have its own build ...
6 years, 4 months ago (2014-07-30 22:17:16 UTC) #20
Dan Beam
moved to gyp
6 years, 4 months ago (2014-08-01 00:38:52 UTC) #21
Dan Beam
ping darin@
6 years, 4 months ago (2014-08-02 00:43:25 UTC) #22
Dan Beam
i've split off the build aspect of this CL to: https://codereview.chromium.org/436843006/ CQ'ing just the JS ...
6 years, 4 months ago (2014-08-02 01:43:47 UTC) #23
Dan Beam
The CQ bit was checked by dbeam@chromium.org
6 years, 4 months ago (2014-08-02 01:45:15 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dbeam@chromium.org/405743002/540001
6 years, 4 months ago (2014-08-02 01:46:58 UTC) #25
Dan Beam
The CQ bit was unchecked by dbeam@chromium.org
6 years, 4 months ago (2014-08-02 03:09:29 UTC) #26
Dan Beam
The CQ bit was checked by dbeam@chromium.org
6 years, 4 months ago (2014-08-02 05:01:50 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dbeam@chromium.org/405743002/560001
6 years, 4 months ago (2014-08-02 05:03:35 UTC) #28
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-02 10:23:54 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-02 11:02:13 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_swarming/builds/2444)
6 years, 4 months ago (2014-08-02 11:02:14 UTC) #31
Dan Beam
The CQ bit was checked by dbeam@chromium.org
6 years, 4 months ago (2014-08-04 18:02:01 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dbeam@chromium.org/405743002/580001
6 years, 4 months ago (2014-08-04 18:03:47 UTC) #33
commit-bot: I haz the power
6 years, 4 months ago (2014-08-04 23:45:25 UTC) #34
Message was sent while issue was closed.
Change committed as 287403

Powered by Google App Engine
This is Rietveld 408576698