diff options
Diffstat (limited to 'remoting/client/jni/chromoting_jni_instance.cc')
-rw-r--r-- | remoting/client/jni/chromoting_jni_instance.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/remoting/client/jni/chromoting_jni_instance.cc b/remoting/client/jni/chromoting_jni_instance.cc index 8dc3b17..f284672 100644 --- a/remoting/client/jni/chromoting_jni_instance.cc +++ b/remoting/client/jni/chromoting_jni_instance.cc @@ -59,12 +59,10 @@ void ChromotingJniInstance::Cleanup() { this)); } -void ChromotingJniInstance::ProvideSecret(const char* pin) { +void ChromotingJniInstance::ProvideSecret(const std::string& pin) { DCHECK(jni_runtime_->ui_task_runner()->BelongsToCurrentThread()); DCHECK(!pin_callback_.is_null()); - // We invoke the string constructor to ensure |pin| gets copied *before* the - // asynchronous run, since Java might want it back as soon as we return. jni_runtime_->network_task_runner()->PostTask(FROM_HERE, base::Bind(pin_callback_, pin)); } |