CrOS Settings: Don't bind language page onCloseMenu_() outside CrOS/win
http://crbug.com/982375: The callback onCloseMenu_() is only defined in the language page JavaScript file in CrOS and Windows however it is bound as a callback in the HTML file regardless of the OS, causing console warnings [1]. http://crbug.com/982390: Also, the private functions section of the language_page's JS [1] is complicated unnecessarily by OS specific blocks for the same conditions that are separated for no logical reason. The first patchset in this CL consolidates the OS specific blocks of complete private methods (i.e. fixes http://crbug.com/982390). The second patch set prevents the onCloseMenu_() callback from being bound unless the OS is CrOS or window (i.e. fixes http://crbug.com/982375). [1] https://imgur.com/a/O5IFCE4 Bug: 982375, 982390 Change-Id: Ic72e7f0e8e1d1680907b4ab8aa99b45f221e4575 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1693385Reviewed-by:Demetrios Papadopoulos <dpapad@chromium.org> Reviewed-by:
May Lippert <maybelle@chromium.org> Commit-Queue: Jordy Greenblatt <jordynass@chromium.org> Cr-Commit-Position: refs/heads/master@{#675847}
Showing
Please register or sign in to comment