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

Issue 2449333002: [ios] Pass more --jscomp_error switches to the closure Compiler. (Closed)

Created:
4 years, 1 month ago by Eugene But (OOO till 7-30)
Modified:
4 years, 1 month ago
CC:
browser-components-watch_chromium.org, chromium-reviews, estade+watch_chromium.org, jdonnelly+autofillwatch_chromium.org, mathp+autofillwatch_chromium.org, rouslan+autofill_chromium.org, sebsg+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ios] Pass more --jscomp_error switches to the closure Compiler. 1.) Allow compiler to see __gCrWeb, __gCrWeb.autofill, __gCrWeb.languageDetection, __gCrWeb.suggestions, __gCrWeb.translate, __gCrWeb.autofill, __gCrWeb.common objects by creating them via dot syntax. 2.) Made __gCrWeb.message.invokeOnHost public as it's used in other files. 3.) Access windowId, via bracket syntax as it may not be defined. 4.) Access POSTSuccessHandler and POSTErrorHandler as they are installed by WKWebView from the native code. BUG=487804 Committed: https://crrev.com/cda1c632a2cbe11af48a9ef5bb7b7e568934611f Cr-Commit-Position: refs/heads/master@{#429344}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressed review comments #

Patch Set 3 : Added back @public #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -27 lines) Patch
M components/autofill/ios/browser/resources/autofill_controller.js View 1 2 chunks +19 lines, -9 lines 0 comments Download
M components/autofill/ios/browser/resources/suggestion_controller.js View 1 2 chunks +13 lines, -2 lines 0 comments Download
M components/translate/ios/browser/resources/language_detection.js View 1 1 chunk +13 lines, -1 line 0 comments Download
M components/translate/ios/browser/resources/translate_ios.js View 1 1 chunk +13 lines, -1 line 0 comments Download
M ios/web/js_compile.gni View 1 chunk +4 lines, -6 lines 0 comments Download
M ios/web/web_state/js/resources/base.js View 1 1 chunk +5 lines, -1 line 0 comments Download
M ios/web/web_state/js/resources/common.js View 1 2 chunks +8 lines, -3 lines 0 comments Download
M ios/web/web_state/js/resources/message.js View 1 2 3 chunks +7 lines, -2 lines 0 comments Download
M ios/web/web_state/js/resources/post_request.js View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 39 (16 generated)
Eugene But (OOO till 7-30)
4 years, 1 month ago (2016-10-26 02:20:19 UTC) #3
dpapad
https://codereview.chromium.org/2449333002/diff/1/components/autofill/ios/browser/resources/autofill_controller.js File components/autofill/ios/browser/resources/autofill_controller.js (right): https://codereview.chromium.org/2449333002/diff/1/components/autofill/ios/browser/resources/autofill_controller.js#newcode59 components/autofill/ios/browser/resources/autofill_controller.js:59: __gCrWeb['autofill'] = __gCrWeb.autofill; What does this line do? Seems ...
4 years, 1 month ago (2016-10-26 17:05:24 UTC) #8
Eugene But (OOO till 7-30)
Thanks for quick review! https://codereview.chromium.org/2449333002/diff/1/components/autofill/ios/browser/resources/autofill_controller.js File components/autofill/ios/browser/resources/autofill_controller.js (right): https://codereview.chromium.org/2449333002/diff/1/components/autofill/ios/browser/resources/autofill_controller.js#newcode59 components/autofill/ios/browser/resources/autofill_controller.js:59: __gCrWeb['autofill'] = __gCrWeb.autofill; On 2016/10/26 ...
4 years, 1 month ago (2016-10-26 17:54:45 UTC) #9
dpapad
LGTM https://codereview.chromium.org/2449333002/diff/1/components/autofill/ios/browser/resources/autofill_controller.js File components/autofill/ios/browser/resources/autofill_controller.js (right): https://codereview.chromium.org/2449333002/diff/1/components/autofill/ios/browser/resources/autofill_controller.js#newcode59 components/autofill/ios/browser/resources/autofill_controller.js:59: __gCrWeb['autofill'] = __gCrWeb.autofill; > dbeam@ suggested to follow ...
4 years, 1 month ago (2016-10-26 18:18:35 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2449333002/20001
4 years, 1 month ago (2016-10-26 20:31:09 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/290276)
4 years, 1 month ago (2016-10-26 20:41:17 UTC) #18
Eugene But (OOO till 7-30)
jdonnelly for autofill https://codereview.chromium.org/2449333002/diff/1/ios/web/web_state/js/resources/post_request.js File ios/web/web_state/js/resources/post_request.js (right): https://codereview.chromium.org/2449333002/diff/1/ios/web/web_state/js/resources/post_request.js#newcode79 ios/web/web_state/js/resources/post_request.js:79: window.webkit.messageHandlers['POSTSuccessHandler'].postMessage(""); On 2016/10/26 18:18:35, dpapad wrote: ...
4 years, 1 month ago (2016-10-26 20:58:53 UTC) #20
Eugene But (OOO till 7-30)
jdonnelly for autofill sdefresne for translate
4 years, 1 month ago (2016-10-26 20:59:24 UTC) #21
Justin Donnelly
https://codereview.chromium.org/2449333002/diff/1/ios/web/web_state/js/resources/message.js File ios/web/web_state/js/resources/message.js (right): https://codereview.chromium.org/2449333002/diff/1/ios/web/web_state/js/resources/message.js#newcode38 ios/web/web_state/js/resources/message.js:38: * @public On 2016/10/26 17:05:24, dpapad wrote: > No ...
4 years, 1 month ago (2016-10-26 21:06:52 UTC) #22
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2449333002/diff/1/ios/web/web_state/js/resources/message.js File ios/web/web_state/js/resources/message.js (right): https://codereview.chromium.org/2449333002/diff/1/ios/web/web_state/js/resources/message.js#newcode38 ios/web/web_state/js/resources/message.js:38: * @public On 2016/10/26 21:06:52, Justin Donnelly wrote: > ...
4 years, 1 month ago (2016-10-26 21:16:24 UTC) #23
Eugene But (OOO till 7-30)
PTAL https://codereview.chromium.org/2449333002/diff/1/ios/web/web_state/js/resources/message.js File ios/web/web_state/js/resources/message.js (right): https://codereview.chromium.org/2449333002/diff/1/ios/web/web_state/js/resources/message.js#newcode38 ios/web/web_state/js/resources/message.js:38: * @public On 2016/10/26 21:16:23, Eugene But wrote: ...
4 years, 1 month ago (2016-10-27 23:23:21 UTC) #24
Eugene But (OOO till 7-30)
Justin?
4 years, 1 month ago (2016-11-01 21:59:09 UTC) #25
Justin Donnelly
lgtm Sorry, I thought you were waiting on dpapad. Looks good!
4 years, 1 month ago (2016-11-01 22:15:28 UTC) #26
Eugene But (OOO till 7-30)
On 2016/11/01 22:15:28, Justin Donnelly wrote: > lgtm > > Sorry, I thought you were ...
4 years, 1 month ago (2016-11-01 22:19:00 UTC) #27
dpapad
On 2016/11/01 at 22:19:00, eugenebut wrote: > On 2016/11/01 22:15:28, Justin Donnelly wrote: > > ...
4 years, 1 month ago (2016-11-01 22:34:48 UTC) #28
Justin Donnelly
On 2016/11/01 22:34:48, dpapad wrote: > "This is the implicit default and rarely used" I ...
4 years, 1 month ago (2016-11-02 13:28:33 UTC) #29
Eugene But (OOO till 7-30)
Sylvain?
4 years, 1 month ago (2016-11-02 15:40:09 UTC) #30
sdefresne
lgtm
4 years, 1 month ago (2016-11-02 17:08:30 UTC) #31
Eugene But (OOO till 7-30)
Thanks everyone!
4 years, 1 month ago (2016-11-02 17:12:59 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2449333002/40001
4 years, 1 month ago (2016-11-02 17:13:46 UTC) #34
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-02 18:14:33 UTC) #36
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/cda1c632a2cbe11af48a9ef5bb7b7e568934611f Cr-Commit-Position: refs/heads/master@{#429344}
4 years, 1 month ago (2016-11-02 18:23:44 UTC) #38
sdefresne
4 years, 1 month ago (2016-11-03 16:10:13 UTC) #39
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2472593005/ by sdefresne@chromium.org.

The reason for reverting is: Reverting as this break the iOS autoroller and the
CL was implemented by a member of the Chrome on iOS team..

Powered by Google App Engine
This is Rietveld 408576698