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

Issue 557633002: Add public API generation with cr.makePublic() and handle it in compiler pass (Closed)

Created:
6 years, 3 months ago by Vitaly Pavlenko
Modified:
6 years, 3 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, nkostylev+watch_chromium.org, tfarina, pam+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, vitalyp+closure_chromium.org, gcasto+watchlist_chromium.org, stevenjb+watch_chromium.org, mkwst+watchlist_chromium.org, dbeam+watch-closure_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@H_options_errors_3
Project:
chromium
Visibility:
Public.

Description

Add public API generation with cr.makePublic() and handle it in compiler pass R=dbeam@chromium.org,tbreisacher@chromium.org BUG=393873 TEST=third_party/closure_compiler/runner/how_to_test_compiler_pass.md Committed: https://crrev.com/730652530d108372ef14f62b89665197628f7880 Cr-Commit-Position: refs/heads/master@{#295173} Committed: https://crrev.com/b38e60a8e1162458f9c4d787c44cf17c32eff414 Cr-Commit-Position: refs/heads/master@{#295410}

Patch Set 1 #

Patch Set 2 : report missing declarations #

Total comments: 11

Patch Set 3 : handle methods declared directly on prototype #

Total comments: 4

Patch Set 4 : fixed tbreisacher@'s comments #

Patch Set 5 : manually handle exported methods declared in base class #

Total comments: 28

Patch Set 6 : fixed some dbeam@'s comments #

Total comments: 1

Patch Set 7 : remove fake declarations #

Total comments: 6

Patch Set 8 : fixed comments #

Patch Set 9 : rebase #

Patch Set 10 : fix bug in makePublic() js implementation #

Patch Set 11 : fix bug with oobe #

Unified diffs Side-by-side diffs Delta from patch set Stats (+364 lines, -120 lines) Patch
M chrome/browser/resources/chromeos/login/oobe_screen_user_image.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -6 lines 0 comments Download
M chrome/browser/resources/options/automatic_settings_reset_banner.js View 1 2 3 4 5 6 2 chunks +26 lines, -7 lines 0 comments Download
M chrome/browser/resources/options/browser_options.js View 1 2 3 4 5 6 7 8 9 10 6 chunks +20 lines, -13 lines 0 comments Download
M chrome/browser/resources/options/chromeos/change_picture_options.js View 1 chunk +2 lines, -7 lines 0 comments Download
M chrome/browser/resources/options/chromeos/keyboard_overlay.js View 1 chunk +2 lines, -7 lines 0 comments Download
M chrome/browser/resources/options/manage_profile_overlay.js View 1 2 3 4 5 6 7 6 chunks +6 lines, -16 lines 0 comments Download
M chrome/browser/resources/options/password_manager.js View 1 chunk +2 lines, -7 lines 0 comments Download
M chrome/browser/resources/options/settings_banner.js View 1 2 3 4 5 6 2 chunks +3 lines, -26 lines 0 comments Download
M chrome/browser/resources/options/startup_overlay.js View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -7 lines 0 comments Download
M chrome/browser/resources/options/supervised_user_create_confirm.js View 1 chunk +2 lines, -7 lines 0 comments Download
M chrome/browser/resources/options/supervised_user_import.js View 1 chunk +2 lines, -7 lines 0 comments Download
M chrome/browser/resources/options/supervised_user_list_data.js View 1 chunk +2 lines, -7 lines 0 comments Download
M third_party/closure_compiler/README.chromium View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/closure_compiler/runner/runner.jar View 1 2 3 4 5 6 7 8 9 10 Binary file 0 comments Download
M third_party/closure_compiler/runner/src/com/google/javascript/jscomp/ChromePass.java View 1 2 3 4 5 5 chunks +110 lines, -1 line 0 comments Download
M third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java View 1 2 3 4 5 1 chunk +162 lines, -0 lines 0 comments Download
M ui/webui/resources/js/cr.js View 1 2 3 4 5 6 7 8 9 10 2 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (4 generated)
Vitaly Pavlenko
There's one problem I don't know yet how to address well. For every exported method ...
6 years, 3 months ago (2014-09-09 18:36:05 UTC) #1
Vitaly Pavlenko
On 2014/09/09 18:36:05, Vitaly Pavlenko wrote: > There's one problem I don't know yet how ...
6 years, 3 months ago (2014-09-09 19:15:09 UTC) #2
Tyler Breisacher (Chromium)
lgtm https://chromiumcodereview.appspot.com/557633002/diff/40001/third_party/closure_compiler/runner/src/com/google/javascript/jscomp/ChromePass.java File third_party/closure_compiler/runner/src/com/google/javascript/jscomp/ChromePass.java (right): https://chromiumcodereview.appspot.com/557633002/diff/40001/third_party/closure_compiler/runner/src/com/google/javascript/jscomp/ChromePass.java#newcode163 third_party/closure_compiler/runner/src/com/google/javascript/jscomp/ChromePass.java:163: assert publicAPI != null && publicAPI.isArrayLit(); This should ...
6 years, 3 months ago (2014-09-09 19:34:46 UTC) #3
Vitaly Pavlenko
https://chromiumcodereview.appspot.com/557633002/diff/40001/third_party/closure_compiler/runner/src/com/google/javascript/jscomp/ChromePass.java File third_party/closure_compiler/runner/src/com/google/javascript/jscomp/ChromePass.java (right): https://chromiumcodereview.appspot.com/557633002/diff/40001/third_party/closure_compiler/runner/src/com/google/javascript/jscomp/ChromePass.java#newcode163 third_party/closure_compiler/runner/src/com/google/javascript/jscomp/ChromePass.java:163: assert publicAPI != null && publicAPI.isArrayLit(); On 2014/09/09 19:34:45, ...
6 years, 3 months ago (2014-09-09 20:31:57 UTC) #4
Vitaly Pavlenko
I handled another case: when we need to have a dummy declaration on subclass because ...
6 years, 3 months ago (2014-09-09 21:27:49 UTC) #5
Tyler Breisacher (Chromium)
On 2014/09/09 21:27:49, Vitaly Pavlenko wrote: > I handled another case: when we need to ...
6 years, 3 months ago (2014-09-09 21:31:38 UTC) #6
Dan Beam
https://chromiumcodereview.appspot.com/557633002/diff/20001/ui/webui/resources/js/cr.js File ui/webui/resources/js/cr.js (right): https://chromiumcodereview.appspot.com/557633002/diff/20001/ui/webui/resources/js/cr.js#newcode301 ui/webui/resources/js/cr.js:301: * @param {Array.<string>} publicAPI List of public method names ...
6 years, 3 months ago (2014-09-10 19:26:28 UTC) #7
Vitaly Pavlenko
https://chromiumcodereview.appspot.com/557633002/diff/80001/chrome/browser/resources/options/automatic_settings_reset_banner.js File chrome/browser/resources/options/automatic_settings_reset_banner.js (right): https://chromiumcodereview.appspot.com/557633002/diff/80001/chrome/browser/resources/options/automatic_settings_reset_banner.js#newcode54 chrome/browser/resources/options/automatic_settings_reset_banner.js:54: * in the base class. On 2014/09/10 19:26:27, Dan ...
6 years, 3 months ago (2014-09-10 20:25:22 UTC) #8
Tyler Breisacher (Chromium)
https://chromiumcodereview.appspot.com/557633002/diff/80001/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://chromiumcodereview.appspot.com/557633002/diff/80001/chrome/browser/resources/options/browser_options.js#newcode1934 chrome/browser/resources/options/browser_options.js:1934: BrowserOptions.prototype.updateStartupPages_; Hang on, if this is a private method ...
6 years, 3 months ago (2014-09-10 20:50:33 UTC) #9
Dan Beam
https://chromiumcodereview.appspot.com/557633002/diff/80001/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://chromiumcodereview.appspot.com/557633002/diff/80001/chrome/browser/resources/options/browser_options.js#newcode1934 chrome/browser/resources/options/browser_options.js:1934: BrowserOptions.prototype.updateStartupPages_; On 2014/09/10 20:50:32, Tyler Breisacher (Chromium) wrote: > ...
6 years, 3 months ago (2014-09-10 21:08:19 UTC) #10
Vitaly Pavlenko
On 2014/09/10 21:08:19, Dan Beam wrote: > https://chromiumcodereview.appspot.com/557633002/diff/80001/chrome/browser/resources/options/browser_options.js > File chrome/browser/resources/options/browser_options.js (right): > > https://chromiumcodereview.appspot.com/557633002/diff/80001/chrome/browser/resources/options/browser_options.js#newcode1934 ...
6 years, 3 months ago (2014-09-12 00:20:05 UTC) #11
Dan Beam
https://chromiumcodereview.appspot.com/557633002/diff/80001/chrome/browser/resources/options/automatic_settings_reset_banner.js File chrome/browser/resources/options/automatic_settings_reset_banner.js (right): https://chromiumcodereview.appspot.com/557633002/diff/80001/chrome/browser/resources/options/automatic_settings_reset_banner.js#newcode54 chrome/browser/resources/options/automatic_settings_reset_banner.js:54: * in the base class. On 2014/09/10 20:25:21, Vitaly ...
6 years, 3 months ago (2014-09-12 00:57:51 UTC) #12
Vitaly Pavlenko
https://codereview.chromium.org/557633002/diff/80001/chrome/browser/resources/options/automatic_settings_reset_banner.js File chrome/browser/resources/options/automatic_settings_reset_banner.js (right): https://codereview.chromium.org/557633002/diff/80001/chrome/browser/resources/options/automatic_settings_reset_banner.js#newcode54 chrome/browser/resources/options/automatic_settings_reset_banner.js:54: * in the base class. On 2014/09/12 00:57:51, Dan ...
6 years, 3 months ago (2014-09-12 18:38:07 UTC) #13
Dan Beam
https://chromiumcodereview.appspot.com/557633002/diff/20001/ui/webui/resources/js/cr.js File ui/webui/resources/js/cr.js (right): https://chromiumcodereview.appspot.com/557633002/diff/20001/ui/webui/resources/js/cr.js#newcode303 ui/webui/resources/js/cr.js:303: * @param {HTMLElement=} opt_target Target node (used in On ...
6 years, 3 months ago (2014-09-12 23:43:54 UTC) #14
Vitaly Pavlenko
https://chromiumcodereview.appspot.com/557633002/diff/20001/ui/webui/resources/js/cr.js File ui/webui/resources/js/cr.js (right): https://chromiumcodereview.appspot.com/557633002/diff/20001/ui/webui/resources/js/cr.js#newcode301 ui/webui/resources/js/cr.js:301: * @param {Array.<string>} publicAPI List of public method names ...
6 years, 3 months ago (2014-09-13 01:22:39 UTC) #15
Dan Beam
lgtm (actually, https://chromiumcodereview.appspot.com/533183002/diff/100001/chrome/browser/resources/options/settings_banner.js hasn't landed yet)
6 years, 3 months ago (2014-09-13 01:26:51 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/557633002/160001
6 years, 3 months ago (2014-09-16 19:56:02 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/557633002/180001
6 years, 3 months ago (2014-09-16 22:01:31 UTC) #21
commit-bot: I haz the power
Committed patchset #10 (id:180001) as 257798a621721c6de5b8a25c229031af35290996
6 years, 3 months ago (2014-09-16 23:14:32 UTC) #22
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/730652530d108372ef14f62b89665197628f7880 Cr-Commit-Position: refs/heads/master@{#295173}
6 years, 3 months ago (2014-09-16 23:15:09 UTC) #23
Ken Rockot(use gerrit already)
A revert of this CL (patchset #10 id:180001) has been created in https://codereview.chromium.org/577843003/ by rockot@chromium.org. ...
6 years, 3 months ago (2014-09-17 01:04:14 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/557633002/200001
6 years, 3 months ago (2014-09-18 03:01:01 UTC) #26
commit-bot: I haz the power
Committed patchset #11 (id:200001) as 6d9ec49ea5db98f9c64290ab6ef7e7d7bf5d4a69
6 years, 3 months ago (2014-09-18 04:00:02 UTC) #27
commit-bot: I haz the power
6 years, 3 months ago (2014-09-18 04:10:08 UTC) #28
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/b38e60a8e1162458f9c4d787c44cf17c32eff414
Cr-Commit-Position: refs/heads/master@{#295410}

Powered by Google App Engine
This is Rietveld 408576698