[Webapp Refactor] Implements Me2MeConnectFlow as an object.
commit4827d56c1339eea1a64601ed5ea44dc76d025486
authorkelvinp <kelvinp@chromium.org>
Tue, 17 Mar 2015 00:43:02 +0000 (16 17:43 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 17 Mar 2015 00:43:32 +0000 (17 00:43 +0000)
tree949c30d66cc463025656bc605fbb1b61417c7efa
parenteaa3c5bf9ad0ac1730eec0bfe1f166f29fe20fc2
[Webapp Refactor] Implements Me2MeConnectFlow as an object.

This CL encapsulates Me2MeConnectFlow as an object.
Ultimately, we would like to create an interface to abstract
connection, error handling on the It2MeFlow and the Me2MeFlow
on the desktop remoting end.

Summary of changes:
1. Move pairingInfo into remoting.Host.
2. Update the field names of remoting.pairingInfo to match
   storage keys.
3. Move code from crd_connect.js into Me2MeConnectFlow.

BUG=466406

Review URL: https://codereview.chromium.org/1008003002

Cr-Commit-Position: refs/heads/master@{#320832}
remoting/webapp/crd/js/client_plugin_impl.js
remoting/webapp/crd/js/crd_connect.js
remoting/webapp/crd/js/credentials_provider.js
remoting/webapp/crd/js/desktop_remoting.js
remoting/webapp/crd/js/host.js
remoting/webapp/crd/js/me2me_connect_flow.js
remoting/webapp/crd/js/session_connector_impl.js