Index: remoting/host/plugin/host_script_object.cc |
diff --git a/remoting/host/plugin/host_script_object.cc b/remoting/host/plugin/host_script_object.cc |
index fa03cee3b512659a9da11714883f508f87fa4a01..7300a4e2ffda7225707d06d4488a7d0c89e05721 100644 |
--- a/remoting/host/plugin/host_script_object.cc |
+++ b/remoting/host/plugin/host_script_object.cc |
@@ -868,7 +868,7 @@ bool HostNPScriptObject::SetProperty(const std::string& property_name, |
if (property_name == kAttrNameOnNatTraversalPolicyChanged) { |
if (NPVARIANT_IS_OBJECT(*value)) { |
on_nat_traversal_policy_changed_func_ = NPVARIANT_TO_OBJECT(*value); |
- if (it2me_impl_) { |
+ if (it2me_impl_.get()) { |
// Ask the It2Me implementation to notify the web-app of the policy. |
it2me_impl_->RequestNatPolicy(); |
} |
@@ -1004,7 +1004,7 @@ bool HostNPScriptObject::Connect(const NPVariant* args, |
return false; |
} |
- if (it2me_impl_) { |
+ if (it2me_impl_.get()) { |
SetException("connect: can be called only when disconnected"); |
return false; |
} |
@@ -1051,7 +1051,7 @@ bool HostNPScriptObject::Disconnect(const NPVariant* args, |
return false; |
} |
- if (it2me_impl_) { |
+ if (it2me_impl_.get()) { |
it2me_impl_->Disconnect(); |
it2me_impl_ = NULL; |
} |