| Index: remoting/client/plugin/chromoting_instance.cc
|
| diff --git a/remoting/client/plugin/chromoting_instance.cc b/remoting/client/plugin/chromoting_instance.cc
|
| index 993e887f2b17a6ce40b41a9d3a7ad94023c35c3e..86442075ea689f64ab844d88ea6a0492bd31334e 100644
|
| --- a/remoting/client/plugin/chromoting_instance.cc
|
| +++ b/remoting/client/plugin/chromoting_instance.cc
|
| @@ -506,19 +506,22 @@ void ChromotingInstance::SetCapabilities(const std::string& capabilities) {
|
| }
|
|
|
| void ChromotingInstance::FetchSecretFromDialog(
|
| - const protocol::SecretFetchedCallback& secret_fetched_callback) {
|
| + const protocol::SecretFetchedCallback& secret_fetched_callback,
|
| + bool pairing_supported) {
|
| // Once the Session object calls this function, it won't continue the
|
| // authentication until the callback is called (or connection is canceled).
|
| // So, it's impossible to reach this with a callback already registered.
|
| DCHECK(secret_fetched_callback_.is_null());
|
| secret_fetched_callback_ = secret_fetched_callback;
|
| scoped_ptr<base::DictionaryValue> data(new base::DictionaryValue());
|
| + data->SetBoolean("pairingSupported", pairing_supported);
|
| PostChromotingMessage("fetchPin", data.Pass());
|
| }
|
|
|
| void ChromotingInstance::FetchSecretFromString(
|
| const std::string& shared_secret,
|
| - const protocol::SecretFetchedCallback& secret_fetched_callback) {
|
| + const protocol::SecretFetchedCallback& secret_fetched_callback,
|
| + bool pairing_supported) {
|
| secret_fetched_callback.Run(shared_secret);
|
| }
|
|
|
|
|