Refactor getLocalHostStateAndId to help with native messaging implementation.
commit3bbc9c037fc47d572770db4bda5c78a8a9006893
authorjamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 26 Mar 2013 08:47:45 +0000 (26 08:47 +0000)
committerjamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 26 Mar 2013 08:47:45 +0000 (26 08:47 +0000)
treeb8e20b7ebbfc4aa603d6e2ef60bc1580b7cf286f
parentfd720d86dddbaaff1f940d0796c914e5fe7f7200
Refactor getLocalHostStateAndId to help with native messaging implementation.

Also, get rid of the cache of the local host id from HostController. It's only
used to unregister the host, and IMO the code is cleaner if it's re-fetched as
needed in this case. The overhead of doing so should be minimal.

BUG=173509

Review URL: https://chromiumcodereview.appspot.com/12902047

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190603 0039d316-1c4b-4281-b951-d872f2087c98
remoting/webapp/event_handlers.js
remoting/webapp/host_controller.js
remoting/webapp/host_setup_dialog.js
remoting/webapp/remoting.js