password_controller.js small improvements.
This CL contains 3 small cleanups. 1.Removed unused functions isAutofilled/setAutofilled (setAutofilled is used, but isAutofilled is not used, so no reasons to keep them) 2.Removed try/catch in getPasswordFormDataList, this function is called only for main frame or same origin iframes. So no need in try/catch. Moreover function fillPasswordFormWithData_, which is called in the same circumstances, doesn't have try/catch. 3.Rewritten for loop by iframes with one line with call of .some(). Bug: 782224 Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs Change-Id: I72a07181ffd643329b7217825ec182e948b3c57b Reviewed-on: https://chromium-review.googlesource.com/825998Reviewed-by:Eugene But <eugenebut@chromium.org> Commit-Queue: Vadym Doroshenko <dvadym@chromium.org> Cr-Commit-Position: refs/heads/master@{#524133}
Showing
Please register or sign in to comment