Remove getCached* methods from remoting.Identity.
commit7b6ab410b0665dcb84c2818f4453b36f2c5a1e36
authorjamiewalch <jamiewalch@chromium.org>
Mon, 2 Mar 2015 23:11:39 +0000 (2 15:11 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 2 Mar 2015 23:12:19 +0000 (2 23:12 +0000)
tree015464cd9f7f1fb40b2f61c3ea350b5e6849c47c
parent3b0ed8bb4f9d4e72a4f0816fd37ca68828da5135
Remove getCached* methods from remoting.Identity.

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}
remoting/webapp/app_remoting/js/app_remoting.js
remoting/webapp/crd/js/host_controller.js
remoting/webapp/crd/js/host_screen.js
remoting/webapp/crd/js/identity.js
remoting/webapp/crd/js/oauth2.js
remoting/webapp/crd/js/session_connector_impl.js