| Index: remoting/client/jni/jni_runtime_delegate.cc
|
| diff --git a/remoting/client/jni/jni_runtime_delegate.cc b/remoting/client/jni/jni_runtime_delegate.cc
|
| index 095db0b03931335146daba12b6d6bd6fbeb1456d..35ddc8c4dca95eb61b939e3169e0ea040f3adf60 100644
|
| --- a/remoting/client/jni/jni_runtime_delegate.cc
|
| +++ b/remoting/client/jni/jni_runtime_delegate.cc
|
| @@ -68,7 +68,7 @@ JniRuntimeDelegate* JniRuntimeDelegate::GetInstance() {
|
| return base::Singleton<JniRuntimeDelegate>::get();
|
| }
|
|
|
| -JniRuntimeDelegate::JniRuntimeDelegate() {
|
| +JniRuntimeDelegate::JniRuntimeDelegate() : weak_factory_(this) {
|
| runtime_ = ChromotingClientRuntime::GetInstance();
|
| }
|
|
|
| @@ -76,6 +76,11 @@ JniRuntimeDelegate::~JniRuntimeDelegate() {
|
| runtime_ = nullptr;
|
| }
|
|
|
| +base::WeakPtr<ChromotingClientRuntime::Delegate>
|
| +JniRuntimeDelegate::GetWeakPtr() {
|
| + return weak_factory_.GetWeakPtr();
|
| +}
|
| +
|
| void JniRuntimeDelegate::RuntimeWillShutdown() {
|
| DCHECK(runtime_->ui_task_runner()->BelongsToCurrentThread());
|
|
|
|
|