| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "remoting/client/jni/chromoting_jni_runtime.h" | 5 #include "remoting/client/jni/chromoting_jni_runtime.h" |
| 6 | 6 |
| 7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
| 8 #include "base/android/jni_array.h" | 8 #include "base/android/jni_array.h" |
| 9 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
| 10 #include "base/android/library_loader/library_loader_hooks.h" | 10 #include "base/android/library_loader/library_loader_hooks.h" |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 124 |
| 125 void ChromotingJniRuntime::DetachFromVmAndSignal(base::WaitableEvent* waiter) { | 125 void ChromotingJniRuntime::DetachFromVmAndSignal(base::WaitableEvent* waiter) { |
| 126 base::android::DetachFromVM(); | 126 base::android::DetachFromVM(); |
| 127 waiter->Signal(); | 127 waiter->Signal(); |
| 128 } | 128 } |
| 129 | 129 |
| 130 void ChromotingJniRuntime::StartLoggerOnNetworkThread() { | 130 void ChromotingJniRuntime::StartLoggerOnNetworkThread() { |
| 131 DCHECK(network_task_runner()->BelongsToCurrentThread()); | 131 DCHECK(network_task_runner()->BelongsToCurrentThread()); |
| 132 logger_.reset(new ClientTelemetryLogger(ChromotingEvent::Mode::ME2ME)); | 132 logger_.reset(new ClientTelemetryLogger(ChromotingEvent::Mode::ME2ME)); |
| 133 logger_->Start( | 133 logger_->Start( |
| 134 base::WrapUnique( | 134 base::MakeUnique<ChromiumUrlRequestFactory>(runtime_->url_requester()), |
| 135 new ChromiumUrlRequestFactory(runtime_->url_requester())), | |
| 136 kTelemetryBaseUrl); | 135 kTelemetryBaseUrl); |
| 137 logger_->SetAuthClosure( | 136 logger_->SetAuthClosure( |
| 138 base::Bind(&ChromotingJniRuntime::FetchAuthToken, | 137 base::Bind(&ChromotingJniRuntime::FetchAuthToken, |
| 139 base::Unretained(this))); | 138 base::Unretained(this))); |
| 140 } | 139 } |
| 141 | 140 |
| 142 } // namespace remoting | 141 } // namespace remoting |
| OLD | NEW |