Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(688)

Unified Diff: remoting/client/jni/chromoting_jni_runtime.cc

Issue 635013002: Remove implicit conversions from scoped_refptr to T* in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/client/jni/chromoting_jni_runtime.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/jni/chromoting_jni_runtime.cc
diff --git a/remoting/client/jni/chromoting_jni_runtime.cc b/remoting/client/jni/chromoting_jni_runtime.cc
index d4cb3fafa8819740b77ad26a776caedd9dfd514f..38834dd06d033b5bc728ac02e30e1bbaf5a9c2c2 100644
--- a/remoting/client/jni/chromoting_jni_runtime.cc
+++ b/remoting/client/jni/chromoting_jni_runtime.cc
@@ -229,7 +229,7 @@ void ChromotingJniRuntime::ConnectToHost(const char* username,
const char* pairing_secret,
const char* capabilities) {
DCHECK(ui_task_runner_->BelongsToCurrentThread());
- DCHECK(!session_);
+ DCHECK(!session_.get());
session_ = new ChromotingJniInstance(this,
username,
auth_token,
@@ -243,7 +243,7 @@ void ChromotingJniRuntime::ConnectToHost(const char* username,
void ChromotingJniRuntime::DisconnectFromHost() {
DCHECK(ui_task_runner_->BelongsToCurrentThread());
- if (session_) {
+ if (session_.get()) {
session_->Disconnect();
session_ = NULL;
}
« no previous file with comments | « remoting/client/jni/chromoting_jni_runtime.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698