• jamiewalch's avatar
    Remove getCached* methods from remoting.Identity. · 7b6ab410
    jamiewalch authored
    These methods were introduced before Promises were implemented to simplify
    code that just needs an email address but wouldn't otherwise need to be
    written asynchronously. With Promises, asynchronous code reads a lot more
    naturally, and it's less of a concern.
    
    Having explicit accessors for cached state means that there needs to be
    some (asynchronous) initialization code to save them, which complicates
    some of the changes I'm planning on making to application start-up. The
    simplest fix is eliminate them altogether and make all the call-sites
    asynchronous.
    
    Review URL: https://codereview.chromium.org/963103004
    
    Cr-Commit-Position: refs/heads/master@{#318794}
    7b6ab410
host_screen.js 10.7 KB