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

Issue 2600683002: Run tools/clang-format-js on some of chrome/browser/resources/ (Closed)

Created:
4 years ago by Dan Beam
Modified:
3 years, 11 months ago
Reviewers:
dschuyler
CC:
chromium-reviews, skanuj+watch_chromium.org, tzik, dcheng, rginda+watch_chromium.org, arv+watch_chromium.org, apacible+watch_chromium.org, extensions-reviews_chromium.org, melevin+watch_chromium.org, dbeam+watch-elements_chromium.org, chromium-apps-reviews_chromium.org, michaelpg+watch-elements_chromium.org, ntp-dev+reviews_chromium.org, nhiroki, feature-media-reviews_chromium.org, feature-vr-reviews_chromium.org, jfweitz+watch_chromium.org, pam+watch_chromium.org, oshima+watch_chromium.org, Jered, michaelpg+watch-md-ui_chromium.org, tfarina, donnd+watch_chromium.org, David Black, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, stevenjb+watch-md-settings_chromium.org, kinuko+fileapi
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Run tools/clang-format-js on some of chrome/browser/resources/ R=dschuyler@chromium.org BUG=567770 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Patch Set 1 : . #

Total comments: 12

Patch Set 2 : event_handler.js #

Total comments: 10

Patch Set 3 : hackhackhack #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+4444 lines, -4607 lines) Patch
M chrome/browser/resources/about_conflicts.js View 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/resources/about_invalidations.js View 5 chunks +10 lines, -14 lines 0 comments Download
M chrome/browser/resources/about_sys/about_sys.js View 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/resources/about_voicesearch.js View 1 chunk +30 lines, -30 lines 0 comments Download
M chrome/browser/resources/app_list/start_page.js View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/resources/bluetooth_internals/adapter_broker.js View 5 chunks +28 lines, -34 lines 0 comments Download
M chrome/browser/resources/bluetooth_internals/bluetooth_internals.js View 3 chunks +67 lines, -51 lines 0 comments Download
M chrome/browser/resources/bluetooth_internals/device_collection.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/bluetooth_internals/device_table.js View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/resources/bluetooth_internals/devices_page.js View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/resources/bluetooth_internals/interfaces.js View 2 chunks +15 lines, -12 lines 0 comments Download
M chrome/browser/resources/bluetooth_internals/sidebar.js View 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/resources/bluetooth_internals/snackbar.js View 3 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/resources/cast/cast.js View 2 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/resources/certificate_viewer.js View 3 chunks +12 lines, -13 lines 0 comments Download
M chrome/browser/resources/connection_manager.js View 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/resources/device_log_ui/device_log_ui.js View 3 chunks +3 lines, -8 lines 0 comments Download
M chrome/browser/resources/domain_reliability_internals.js View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/engagement/site_engagement.js View 1 chunk +156 lines, -153 lines 3 comments Download
M chrome/browser/resources/feedback/js/data.js View 2 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/resources/feedback/js/event_handler.js View 1 5 chunks +90 lines, -87 lines 0 comments Download
M chrome/browser/resources/feedback/js/feedback.js View 1 2 9 chunks +48 lines, -44 lines 0 comments Download
M chrome/browser/resources/feedback/js/take_screenshot.js View 1 chunk +17 lines, -20 lines 0 comments Download
M chrome/browser/resources/gaia_auth/background.js View 9 chunks +14 lines, -25 lines 0 comments Download
M chrome/browser/resources/gaia_auth/main.js View 17 chunks +73 lines, -85 lines 0 comments Download
M chrome/browser/resources/gaia_auth/offline.js View 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/resources/gaia_auth/saml_injected.js View 7 chunks +25 lines, -32 lines 0 comments Download
M chrome/browser/resources/gaia_auth_host/authenticator.js View 1 2 17 chunks +59 lines, -85 lines 4 comments Download
M chrome/browser/resources/gaia_auth_host/post_message_channel.js View 8 chunks +18 lines, -24 lines 0 comments Download
M chrome/browser/resources/gaia_auth_host/saml_handler.js View 11 chunks +32 lines, -37 lines 0 comments Download
M chrome/browser/resources/hangout_services/thunk.js View 3 chunks +191 lines, -197 lines 0 comments Download
M chrome/browser/resources/help/channel_change_page.js View 3 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/resources/help/help.js View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/resources/help/help_page.js View 11 chunks +31 lines, -32 lines 0 comments Download
M chrome/browser/resources/hotword_audio_verification/event_page.js View 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/resources/hotword_audio_verification/flow.js View 9 chunks +17 lines, -20 lines 0 comments Download
M chrome/browser/resources/identity_internals.js View 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/resources/identity_scope_approval_dialog/background.js View 1 chunk +11 lines, -18 lines 0 comments Download
M chrome/browser/resources/identity_scope_approval_dialog/scope_approval_dialog.js View 2 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/resources/inline_login/inline_login.js View 2 chunks +11 lines, -8 lines 0 comments Download
M chrome/browser/resources/inspect/inspect.js View 20 chunks +73 lines, -73 lines 0 comments Download
M chrome/browser/resources/instant/instant.js View 3 chunks +13 lines, -7 lines 0 comments Download
M chrome/browser/resources/local_discovery/local_discovery.js View 17 chunks +52 lines, -62 lines 0 comments Download
M chrome/browser/resources/local_ntp/instant_iframe_validation.js View 2 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/resources/local_ntp/local_ntp.js View 2 chunks +720 lines, -707 lines 0 comments Download
M chrome/browser/resources/local_ntp/most_visited_single.js View 1 chunk +555 lines, -540 lines 0 comments Download
M chrome/browser/resources/local_ntp/most_visited_title.js View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/resources/local_ntp/most_visited_util.js View 3 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/resources/local_state/local_state.js View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/resources/md_feedback/feedback.js View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/resources/md_feedback/feedback_container.js View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/resources/md_user_manager/control_bar.js View 4 chunks +20 lines, -28 lines 0 comments Download
M chrome/browser/resources/md_user_manager/create_profile.js View 3 chunks +414 lines, -436 lines 0 comments Download
M chrome/browser/resources/md_user_manager/error_dialog.js View 1 chunk +16 lines, -19 lines 0 comments Download
M chrome/browser/resources/md_user_manager/import_supervised_user.js View 1 chunk +80 lines, -77 lines 0 comments Download
M chrome/browser/resources/md_user_manager/profile_browser_proxy.js View 2 chunks +10 lines, -7 lines 0 comments Download
M chrome/browser/resources/md_user_manager/supervised_user_create_confirm.js View 1 chunk +89 lines, -91 lines 0 comments Download
M chrome/browser/resources/md_user_manager/supervised_user_learn_more.js View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/resources/md_user_manager/user_manager.js View 5 chunks +15 lines, -16 lines 0 comments Download
M chrome/browser/resources/md_user_manager/user_manager_dialog.js View 3 chunks +8 lines, -10 lines 0 comments Download
M chrome/browser/resources/md_user_manager/user_manager_pages.js View 1 chunk +3 lines, -11 lines 0 comments Download
M chrome/browser/resources/md_user_manager/user_manager_tutorial.js View 1 chunk +74 lines, -84 lines 0 comments Download
M chrome/browser/resources/media/webrtc_logs.js View 3 chunks +20 lines, -27 lines 0 comments Download
M chrome/browser/resources/network_speech_synthesis/tts_extension.js View 3 chunks +31 lines, -37 lines 0 comments Download
M chrome/browser/resources/offline_pages/offline_internals.js View 2 chunks +18 lines, -21 lines 0 comments Download
M chrome/browser/resources/omnibox/omnibox.js View 9 chunks +72 lines, -66 lines 0 comments Download
M chrome/browser/resources/plugins.js View 8 chunks +66 lines, -64 lines 0 comments Download
M chrome/browser/resources/policy.js View 14 chunks +34 lines, -36 lines 0 comments Download
M chrome/browser/resources/predictors/autocomplete_action_predictor.js View 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/resources/predictors/predictors.js View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/predictors/resource_prefetch_predictor.js View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/profiler/profiler.js View 24 chunks +62 lines, -66 lines 0 comments Download
M chrome/browser/resources/quota_internals/event_handler.js View 5 chunks +387 lines, -407 lines 0 comments Download
M chrome/browser/resources/signin/signin_email_confirmation/signin_email_confirmation.js View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/resources/snippets_internals.js View 5 chunks +11 lines, -8 lines 0 comments Download
M chrome/browser/resources/standalone/standalone_hack.js View 5 chunks +42 lines, -49 lines 0 comments Download
M chrome/browser/resources/supervised_user_internals.js View 4 chunks +7 lines, -8 lines 0 comments Download
M chrome/browser/resources/sync_file_system_internals/dump_database.js View 1 chunk +67 lines, -65 lines 0 comments Download
M chrome/browser/resources/sync_file_system_internals/extension_statuses.js View 1 chunk +41 lines, -41 lines 0 comments Download
M chrome/browser/resources/sync_file_system_internals/file_metadata.js View 1 chunk +113 lines, -111 lines 0 comments Download
M chrome/browser/resources/sync_file_system_internals/sync_service.js View 1 chunk +75 lines, -74 lines 0 comments Download
M chrome/browser/resources/sync_file_system_internals/task_log.js View 1 chunk +52 lines, -52 lines 0 comments Download
M chrome/browser/resources/translate_internals/translate_internals.js View 10 chunks +36 lines, -33 lines 0 comments Download
M chrome/browser/resources/uber/uber.js View 11 chunks +25 lines, -28 lines 0 comments Download
M chrome/browser/resources/uber/uber_frame.js View 4 chunks +10 lines, -11 lines 0 comments Download
M chrome/browser/resources/uber/uber_page_manager_observer.js View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/resources/uber/uber_utils.js View 3 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/resources/usb_internals/usb_internals.js View 1 chunk +21 lines, -19 lines 0 comments Download
M chrome/browser/resources/user_actions/user_actions.js View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/resources/welcome/welcome.js View 1 chunk +9 lines, -9 lines 0 comments Download
M chrome/browser/resources/welcome/win10/inline.js View 1 chunk +17 lines, -22 lines 0 comments Download
M chrome/browser/resources/welcome/win10/sectioned.js View 1 chunk +17 lines, -22 lines 0 comments Download

Messages

Total messages: 30 (15 generated)
Dan Beam
4 years ago (2016-12-23 01:18:03 UTC) #4
dschuyler
https://codereview.chromium.org/2600683002/diff/40001/chrome/browser/resources/about_invalidations.js File chrome/browser/resources/about_invalidations.js (right): https://codereview.chromium.org/2600683002/diff/40001/chrome/browser/resources/about_invalidations.js#newcode82 chrome/browser/resources/about_invalidations.js:82: The prior format looks more readable. https://codereview.chromium.org/2600683002/diff/40001/chrome/browser/resources/bluetooth_internals/adapter_broker.js File chrome/browser/resources/bluetooth_internals/adapter_broker.js ...
4 years ago (2016-12-23 01:24:17 UTC) #7
Dan Beam
check the newer patch
4 years ago (2016-12-23 01:26:36 UTC) #8
Dan Beam
https://codereview.chromium.org/2600683002/diff/40001/chrome/browser/resources/about_invalidations.js File chrome/browser/resources/about_invalidations.js (right): https://codereview.chromium.org/2600683002/diff/40001/chrome/browser/resources/about_invalidations.js#newcode82 chrome/browser/resources/about_invalidations.js:82: On 2016/12/23 01:24:17, dschuyler wrote: > The prior format ...
4 years ago (2016-12-23 01:30:41 UTC) #9
dschuyler
https://codereview.chromium.org/2600683002/diff/40001/chrome/browser/resources/bluetooth_internals/interfaces.js File chrome/browser/resources/bluetooth_internals/interfaces.js (right): https://codereview.chromium.org/2600683002/diff/40001/chrome/browser/resources/bluetooth_internals/interfaces.js#newcode31 chrome/browser/resources/bluetooth_internals/interfaces.js:31: ]) On 2016/12/23 01:30:40, Dan Beam wrote: > On ...
4 years ago (2016-12-23 01:49:13 UTC) #10
Dan Beam
https://codereview.chromium.org/2600683002/diff/40001/chrome/browser/resources/bluetooth_internals/interfaces.js File chrome/browser/resources/bluetooth_internals/interfaces.js (right): https://codereview.chromium.org/2600683002/diff/40001/chrome/browser/resources/bluetooth_internals/interfaces.js#newcode31 chrome/browser/resources/bluetooth_internals/interfaces.js:31: ]) On 2016/12/23 01:49:13, dschuyler wrote: > On 2016/12/23 ...
4 years ago (2016-12-23 01:50:07 UTC) #11
mthiesse
https://codereview.chromium.org/2600683002/diff/60001/chrome/browser/resources/vr_shell/vr_shell_ui.js File chrome/browser/resources/vr_shell/vr_shell_ui.js (right): https://codereview.chromium.org/2600683002/diff/60001/chrome/browser/resources/vr_shell/vr_shell_ui.js#newcode436 chrome/browser/resources/vr_shell/vr_shell_ui.js:436: 0 : nit: does style guide require the else ...
4 years ago (2016-12-23 05:30:59 UTC) #15
dschuyler
https://codereview.chromium.org/2600683002/diff/60001/chrome/browser/resources/vr_shell/vr_shell_ui.js File chrome/browser/resources/vr_shell/vr_shell_ui.js (right): https://codereview.chromium.org/2600683002/diff/60001/chrome/browser/resources/vr_shell/vr_shell_ui.js#newcode436 chrome/browser/resources/vr_shell/vr_shell_ui.js:436: 0 : On 2016/12/23 05:30:59, mthiesse wrote: > nit: ...
3 years, 12 months ago (2016-12-27 19:38:11 UTC) #16
dschuyler
https://codereview.chromium.org/2600683002/diff/60001/chrome/browser/resources/vr_shell/vr_shell_ui.js File chrome/browser/resources/vr_shell/vr_shell_ui.js (right): https://codereview.chromium.org/2600683002/diff/60001/chrome/browser/resources/vr_shell/vr_shell_ui.js#newcode436 chrome/browser/resources/vr_shell/vr_shell_ui.js:436: 0 : On 2016/12/27 19:38:10, dschuyler wrote: > On ...
3 years, 11 months ago (2016-12-28 19:26:22 UTC) #17
dschuyler
https://codereview.chromium.org/2600683002/diff/60001/chrome/browser/resources/feedback/js/feedback.js File chrome/browser/resources/feedback/js/feedback.js (right): https://codereview.chromium.org/2600683002/diff/60001/chrome/browser/resources/feedback/js/feedback.js#newcode444 chrome/browser/resources/feedback/js/feedback.js:444: // <if expr="chromeos"> Just pointing this out in case ...
3 years, 11 months ago (2016-12-28 23:59:13 UTC) #18
Dan Beam
https://codereview.chromium.org/2600683002/diff/60001/chrome/browser/resources/feedback/js/feedback.js File chrome/browser/resources/feedback/js/feedback.js (right): https://codereview.chromium.org/2600683002/diff/60001/chrome/browser/resources/feedback/js/feedback.js#newcode444 chrome/browser/resources/feedback/js/feedback.js:444: // <if expr="chromeos"> On 2016/12/28 23:59:12, dschuyler wrote: > ...
3 years, 11 months ago (2016-12-29 00:02:05 UTC) #19
cjgrant
https://codereview.chromium.org/2600683002/diff/60001/chrome/browser/resources/vr_shell/vr_shell_ui.js File chrome/browser/resources/vr_shell/vr_shell_ui.js (right): https://codereview.chromium.org/2600683002/diff/60001/chrome/browser/resources/vr_shell/vr_shell_ui.js#newcode436 chrome/browser/resources/vr_shell/vr_shell_ui.js:436: 0 : On 2016/12/28 19:26:22, dschuyler wrote: > On ...
3 years, 11 months ago (2017-01-04 18:24:12 UTC) #21
Dan Beam
On 2017/01/04 18:24:12, cjgrant wrote: > https://codereview.chromium.org/2600683002/diff/60001/chrome/browser/resources/vr_shell/vr_shell_ui.js > File chrome/browser/resources/vr_shell/vr_shell_ui.js (right): > > https://codereview.chromium.org/2600683002/diff/60001/chrome/browser/resources/vr_shell/vr_shell_ui.js#newcode436 > ...
3 years, 11 months ago (2017-01-04 20:30:17 UTC) #22
dschuyler
I took another pass through the files. Sorry to not get all the comments in ...
3 years, 11 months ago (2017-01-06 02:16:34 UTC) #29
Dan Beam
3 years, 11 months ago (2017-01-06 02:36:50 UTC) #30
i'm going to close this for right now while we figure out some the other details
(i.e. how to handle <include> and <if>).

don't look at this again until i ping it ;)

https://codereview.chromium.org/2600683002/diff/80001/chrome/browser/resource...
File chrome/browser/resources/engagement/site_engagement.js (left):

https://codereview.chromium.org/2600683002/diff/80001/chrome/browser/resource...
chrome/browser/resources/engagement/site_engagement.js:43: }
this is an ASI problem.

https://codereview.chromium.org/2600683002/diff/80001/chrome/browser/resource...
File chrome/browser/resources/gaia_auth_host/authenticator.js (right):

https://codereview.chromium.org/2600683002/diff/80001/chrome/browser/resource...
chrome/browser/resources/gaia_auth_host/authenticator.js:78: 'flow',          //
One of 'default', 'enterprise', or 'theftprotection'.
On 2017/01/06 02:16:33, dschuyler wrote:
> Could the formatter align the comments in all of SUPPORTED_PARAMS?

maybe it could but there's style rules that discourage this, I'm pretty sure

https://codereview.chromium.org/2600683002/diff/80001/chrome/browser/resource...
chrome/browser/resources/gaia_auth_host/authenticator.js:122: this.gaiaId_ =
null, this.sessionIndex_ = null;
On 2017/01/06 02:16:33, dschuyler wrote:
> This looks like a typo in the original file.  s/,/;/

yes, it is

Powered by Google App Engine
This is Rietveld 408576698