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

Issue 803653004: Update Chromoting to use /third_party/closure_compiler. (Closed)

Created:
5 years, 11 months ago by garykac
Modified:
5 years, 11 months ago
CC:
chromium-reviews, vitalyp+closure_chromium.org, dbeam+watch-closure_chromium.org, dcheng, chromoting-reviews_chromium.org, dimvar_google.com
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update Chromoting to use /third_party/closure_compiler. This cl updates the checker.py script in /third_party/closure_compiler to add an option to process a set of JS files at once rather than one at a time (the current default). It also adds a flag to enable additional compiler checks (since Chromoting wants all checks enabled). It also updates the Chromoting .gyp files to make use of the new compiler. The remaining changes were motivated by the errors reported by the new closure compiler. BUG= Committed: https://crrev.com/23605febf70f2c6eb42322e2392522cbf0175b8a Cr-Commit-Position: refs/heads/master@{#311531}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Remove unused types #

Total comments: 21

Patch Set 3 : Review comments; Share code in checker.py #

Patch Set 4 : Merge; Update closure annotations for new Js code #

Total comments: 8

Patch Set 5 : Update checker.py; Don't enable jscompile by default #

Patch Set 6 : Define Entry for browser_tests #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+541 lines, -647 lines) Patch
M remoting/app_remoting_webapp_build.gypi View 4 chunks +8 lines, -8 lines 0 comments Download
M remoting/remoting_webapp.gypi View 1 chunk +4 lines, -2 lines 0 comments Download
M remoting/remoting_webapp_files.gypi View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M remoting/webapp/app_remoting/js/app_remoting.js View 1 chunk +1 line, -1 line 0 comments Download
M remoting/webapp/app_remoting/js/application_context_menu.js View 1 chunk +1 line, -1 line 0 comments Download
M remoting/webapp/app_remoting/js/context_menu_adapter.js View 1 chunk +1 line, -1 line 0 comments Download
M remoting/webapp/app_remoting/js/context_menu_dom.js View 3 chunks +6 lines, -6 lines 0 comments Download
M remoting/webapp/app_remoting/js/drag_and_drop.js View 2 chunks +3 lines, -3 lines 0 comments Download
M remoting/webapp/app_remoting/js/keyboard_layouts_menu.js View 1 chunk +1 line, -1 line 0 comments Download
M remoting/webapp/app_remoting/js/window_activation_menu.js View 1 chunk +1 line, -1 line 0 comments Download
M remoting/webapp/base/js/application.js View 1 chunk +1 line, -1 line 0 comments Download
M remoting/webapp/base/js/base.js View 1 2 5 chunks +19 lines, -19 lines 0 comments Download
M remoting/webapp/base/js/message_window.js View 2 chunks +5 lines, -3 lines 0 comments Download
M remoting/webapp/base/js/message_window_helper.js View 6 chunks +46 lines, -21 lines 0 comments Download
M remoting/webapp/base/js/message_window_manager.js View 1 chunk +1 line, -1 line 0 comments Download
M remoting/webapp/base/js/window_shape.js View 1 chunk +1 line, -2 lines 0 comments Download
M remoting/webapp/crd/js/app_launcher.js View 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/webapp/crd/js/butter_bar.js View 1 chunk +1 line, -1 line 0 comments Download
M remoting/webapp/crd/js/client_plugin.js View 1 2 chunks +3 lines, -3 lines 0 comments Download
M remoting/webapp/crd/js/client_plugin_impl.js View 8 chunks +23 lines, -13 lines 0 comments Download
M remoting/webapp/crd/js/client_screen.js View 1 chunk +1 line, -1 line 0 comments Download
M remoting/webapp/crd/js/client_session.js View 16 chunks +28 lines, -27 lines 0 comments Download
M remoting/webapp/crd/js/clipboard.js View 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/webapp/crd/js/crd_connect.js View 1 chunk +1 line, -1 line 0 comments Download
M remoting/webapp/crd/js/crd_main.js View 1 chunk +14 lines, -13 lines 0 comments Download
M remoting/webapp/crd/js/fullscreen.js View 1 chunk +3 lines, -2 lines 0 comments Download
M remoting/webapp/crd/js/fullscreen_v1.js View 1 2 chunks +21 lines, -11 lines 0 comments Download
M remoting/webapp/crd/js/fullscreen_v2.js View 1 chunk +6 lines, -0 lines 0 comments Download
M remoting/webapp/crd/js/gnubby_auth_handler.js View 1 chunk +2 lines, -2 lines 0 comments Download
M remoting/webapp/crd/js/hangout_session.js View 1 2 2 chunks +3 lines, -4 lines 0 comments Download
M remoting/webapp/crd/js/host_controller.js View 4 chunks +6 lines, -6 lines 0 comments Download
M remoting/webapp/crd/js/host_daemon_facade.js View 3 chunks +23 lines, -24 lines 0 comments Download
M remoting/webapp/crd/js/host_installer.js View 1 chunk +25 lines, -23 lines 0 comments Download
M remoting/webapp/crd/js/host_list.js View 3 chunks +18 lines, -5 lines 0 comments Download
M remoting/webapp/crd/js/host_screen.js View 2 chunks +3 lines, -5 lines 0 comments Download
M remoting/webapp/crd/js/host_settings.js View 2 chunks +3 lines, -4 lines 0 comments Download
M remoting/webapp/crd/js/host_setup_dialog.js View 1 chunk +1 line, -1 line 0 comments Download
M remoting/webapp/crd/js/host_table_entry.js View 4 chunks +14 lines, -11 lines 0 comments Download
M remoting/webapp/crd/js/identity.js View 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/webapp/crd/js/it2me_helpee_channel.js View 1 2 6 chunks +10 lines, -10 lines 0 comments Download
M remoting/webapp/crd/js/it2me_helper_channel.js View 3 chunks +14 lines, -13 lines 0 comments Download
M remoting/webapp/crd/js/it2me_host_facade.js View 3 chunks +5 lines, -6 lines 0 comments Download
M remoting/webapp/crd/js/it2me_service.js View 3 chunks +5 lines, -5 lines 0 comments Download
M remoting/webapp/crd/js/menu_button.js View 1 chunk +2 lines, -2 lines 0 comments Download
M remoting/webapp/crd/js/oauth2.js View 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/webapp/crd/js/oauth2_api_impl.js View 1 2 3 4 chunks +8 lines, -12 lines 0 comments Download
M remoting/webapp/crd/js/remoting.js View 3 chunks +6 lines, -8 lines 0 comments Download
M remoting/webapp/crd/js/session_connector.js View 1 chunk +2 lines, -2 lines 0 comments Download
M remoting/webapp/crd/js/session_connector_impl.js View 5 chunks +7 lines, -7 lines 0 comments Download
M remoting/webapp/crd/js/smart_reconnector.js View 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/webapp/crd/js/toolbar.js View 1 chunk +2 lines, -1 line 0 comments Download
M remoting/webapp/crd/js/typecheck.js View 1 chunk +1 line, -1 line 0 comments Download
M remoting/webapp/crd/js/ui_mode.js View 6 chunks +27 lines, -12 lines 0 comments Download
M remoting/webapp/crd/js/video_frame_recorder.js View 3 chunks +11 lines, -12 lines 0 comments Download
M remoting/webapp/crd/js/xhr.js View 2 chunks +5 lines, -3 lines 0 comments Download
M remoting/webapp/crd/js/xmpp_connection.js View 1 chunk +1 line, -1 line 0 comments Download
M remoting/webapp/js_proto/chrome_proto.js View 1 2 3 4 5 7 chunks +9 lines, -25 lines 0 comments Download
D remoting/webapp/js_proto/console_proto.js View 1 chunk +0 lines, -29 lines 0 comments Download
M remoting/webapp/js_proto/dom_proto.js View 1 2 3 6 chunks +12 lines, -187 lines 0 comments Download
M remoting/webapp/js_proto/remoting_proto.js View 1 chunk +0 lines, -32 lines 0 comments Download
M remoting/webapp/unittests/chrome_mocks.js View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/closure_compiler/checker.py View 1 2 3 4 7 chunks +103 lines, -39 lines 6 comments Download

Messages

Total messages: 22 (5 generated)
garykac
dtbreisacher: Please look at checker.py (dbeam is OOO until 1/22) kelvinp: Please review the Chromoting ...
5 years, 11 months ago (2015-01-12 20:22:37 UTC) #2
Tyler Breisacher (Chromium)
https://codereview.chromium.org/803653004/diff/20001/third_party/closure_compiler/checker.py File third_party/closure_compiler/checker.py (right): https://codereview.chromium.org/803653004/diff/20001/third_party/closure_compiler/checker.py#newcode52 third_party/closure_compiler/checker.py:52: "--jscomp_error=reportUnknownTypes", We generally don't recommend people use this flag. ...
5 years, 11 months ago (2015-01-12 20:35:16 UTC) #3
Jamie
https://codereview.chromium.org/803653004/diff/20001/third_party/closure_compiler/checker.py File third_party/closure_compiler/checker.py (right): https://codereview.chromium.org/803653004/diff/20001/third_party/closure_compiler/checker.py#newcode52 third_party/closure_compiler/checker.py:52: "--jscomp_error=reportUnknownTypes", On 2015/01/12 20:35:15, Tyler Breisacher (Chromium) wrote: > ...
5 years, 11 months ago (2015-01-12 20:45:10 UTC) #4
Tyler Breisacher (Chromium)
On 2015/01/12 20:45:10, Jamie wrote: > https://codereview.chromium.org/803653004/diff/20001/third_party/closure_compiler/checker.py > File third_party/closure_compiler/checker.py (right): > > https://codereview.chromium.org/803653004/diff/20001/third_party/closure_compiler/checker.py#newcode52 > ...
5 years, 11 months ago (2015-01-12 20:47:00 UTC) #5
Tyler Breisacher (Chromium)
On 2015/01/12 20:47:00, Tyler Breisacher (Chromium) wrote: > On 2015/01/12 20:45:10, Jamie wrote: > > ...
5 years, 11 months ago (2015-01-12 20:48:30 UTC) #6
kelvinp
Thx for doing this Gary. Mostly nits feedback here. lgtm once comments are addressed. https://codereview.chromium.org/803653004/diff/20001/remoting/webapp/base/js/base.js ...
5 years, 11 months ago (2015-01-12 22:51:28 UTC) #7
garykac
https://codereview.chromium.org/803653004/diff/20001/remoting/webapp/base/js/base.js File remoting/webapp/base/js/base.js (right): https://codereview.chromium.org/803653004/diff/20001/remoting/webapp/base/js/base.js#newcode49 remoting/webapp/base/js/base.js:49: } catch (/** @type {*} */ e) { On ...
5 years, 11 months ago (2015-01-13 00:28:39 UTC) #8
garykac
https://codereview.chromium.org/803653004/diff/20001/remoting/webapp/base/js/base.js File remoting/webapp/base/js/base.js (right): https://codereview.chromium.org/803653004/diff/20001/remoting/webapp/base/js/base.js#newcode49 remoting/webapp/base/js/base.js:49: } catch (/** @type {*} */ e) { On ...
5 years, 11 months ago (2015-01-13 00:28:39 UTC) #9
Tyler Breisacher (Chromium)
lgtm with nits, for checker.py -- I didn't really look at the rest very much. ...
5 years, 11 months ago (2015-01-13 03:01:01 UTC) #10
garykac
https://codereview.chromium.org/803653004/diff/60001/third_party/closure_compiler/checker.py File third_party/closure_compiler/checker.py (right): https://codereview.chromium.org/803653004/diff/60001/third_party/closure_compiler/checker.py#newcode195 third_party/closure_compiler/checker.py:195: (_, stderr) = runner_cmd.communicate() On 2015/01/13 03:01:00, Tyler Breisacher ...
5 years, 11 months ago (2015-01-13 18:11:36 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/803653004/80001
5 years, 11 months ago (2015-01-13 18:12:47 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/14383)
5 years, 11 months ago (2015-01-13 19:18:34 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/803653004/100001
5 years, 11 months ago (2015-01-14 18:47:47 UTC) #17
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 11 months ago (2015-01-14 19:37:49 UTC) #18
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/23605febf70f2c6eb42322e2392522cbf0175b8a Cr-Commit-Position: refs/heads/master@{#311531}
5 years, 11 months ago (2015-01-14 19:38:51 UTC) #19
Dan Beam
did you see our compiled_resources.gyp files that let you do multiple file compilation/stamps? certainly seems ...
5 years, 11 months ago (2015-01-21 22:21:55 UTC) #21
Dan Beam
5 years, 11 months ago (2015-01-21 22:26:56 UTC) #22
Message was sent while issue was closed.
https://codereview.chromium.org/803653004/diff/100001/third_party/closure_com...
File third_party/closure_compiler/checker.py (right):

https://codereview.chromium.org/803653004/diff/100001/third_party/closure_com...
third_party/closure_compiler/checker.py:180: def run_js_check(self, sources,
externs=None):
this argument is named externs...

https://codereview.chromium.org/803653004/diff/100001/third_party/closure_com...
third_party/closure_compiler/checker.py:185: if externs:
|externs| seems to always be passed.  can we make it unnamed or just remove the
if check?

https://codereview.chromium.org/803653004/diff/100001/third_party/closure_com...
third_party/closure_compiler/checker.py:243: errors, stderr =
self.run_js_check(self._expanded_file, depends)
..but run_js_check() is called here with "depends"

https://codereview.chromium.org/803653004/diff/100001/third_party/closure_com...
third_party/closure_compiler/checker.py:280: help="Process each source file
individually")
why can't we just use a list always and just pass 1 file if it's singular?

https://codereview.chromium.org/803653004/diff/100001/third_party/closure_com...
third_party/closure_compiler/checker.py:281:
single_file_group.add_argument("--no-single-file", dest="single_file",
this is a bad name

https://codereview.chromium.org/803653004/diff/100001/third_party/closure_com...
third_party/closure_compiler/checker.py:294:
parser.set_defaults(single_file=True, strict=False)
can't we annotate this in the add_argument() call itself?

Powered by Google App Engine
This is Rietveld 408576698