• Dan Beam's avatar
    Use FireWebUIListener() a little more · 81865e4b
    Dan Beam authored
    FireWebUIListener(name, ...) is essentially an alias for:
    
      CallJavascriptFunction("cr.webUIListenerCallback", base::Value(name), ...);
    
    Using it reduces the amount of times we paste "cr.webUIListenerCallback" and
    generally reduces the amount of parallel paths for notifying running web
    UI pages.
    
    R=aee@chromium.org
    BUG=none
    
    Change-Id: Id3ee2622949c0fd1bba9705655de4cb0faf386f4
    Reviewed-on: https://chromium-review.googlesource.com/c/1431293Reviewed-by: default avatarEsmael El-Moslimany <aee@chromium.org>
    Commit-Queue: Esmael El-Moslimany <aee@chromium.org>
    Auto-Submit: Dan Beam (slow until 1/29) <dbeam@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#625390}
    81865e4b
font_handler.cc 5.06 KB