Index: remoting/protocol/negotiating_client_authenticator.cc |
diff --git a/remoting/protocol/negotiating_client_authenticator.cc b/remoting/protocol/negotiating_client_authenticator.cc |
index c6a2a7b6be5fdd3a572634a4c80d97cc85f951a9..599fca861833eb733f3013b866b8b20d40bcf827 100644 |
--- a/remoting/protocol/negotiating_client_authenticator.cc |
+++ b/remoting/protocol/negotiating_client_authenticator.cc |
@@ -125,12 +125,12 @@ void NegotiatingClientAuthenticator::CreateAuthenticatorForCurrentMethod( |
} else { |
DCHECK(current_method_.type() == AuthenticationMethod::SPAKE2 || |
current_method_.type() == AuthenticationMethod::SPAKE2_PAIR); |
- // TODO(jamiewalch): Add a bool parameter to the fetch secret callback to |
- // indicate whether or not to show the "remember me" checkbox. Set it to |
- // (current_method_.type() == AuthenticationMethod::SPAKE2_PAIR). |
- fetch_secret_callback_.Run(base::Bind( |
+ bool pairing_supported = |
+ (current_method_.type() == AuthenticationMethod::SPAKE2_PAIR); |
+ SecretFetchedCallback callback = base::Bind( |
&NegotiatingClientAuthenticator::CreateV2AuthenticatorWithSecret, |
- weak_factory_.GetWeakPtr(), preferred_initial_state, resume_callback)); |
+ weak_factory_.GetWeakPtr(), preferred_initial_state, resume_callback); |
+ fetch_secret_callback_.Run(pairing_supported, callback); |
} |
} |