• dpapad's avatar
    Migrate chrome://memory-internals to JS modules. · f925f56d
    dpapad authored
    Also performing several other small cleanups
     1) Eliminate usage of CallJavascriptFunctionUnsafe()
     2) Eliminate global setSaveDumpMessage in favor of a WebUI event.
     3) Eliminate global returnProcessList in favor of a Promise.
     4) Remove bad calls to AllowJavascript(). This method should not
        be called within async C++ callbacks.
     5) Add JS type checking.
     6) Move "Refresh" and "Save" button creation in HTML, no need to
        do this in JS.
     7) Remove unnecessary flattenhtml="true" in grd file.
    
    Bug: 1028829
    Change-Id: I7841982bef7957b7178171ab50211f93deb1d672
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1956446
    Auto-Submit: dpapad <dpapad@chromium.org>
    Reviewed-by: default avatarErik Chen <erikchen@chromium.org>
    Reviewed-by: default avatarJohn Lee <johntlee@chromium.org>
    Commit-Queue: Erik Chen <erikchen@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#759075}
    f925f56d
dev_ui_browser_resources.grd 11.6 KB