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

Unified Diff: remoting/host/plugin/host_script_object.cc

Issue 15782010: Update remoting/ and jingle/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/host/ipc_util_posix.cc ('k') | remoting/host/register_support_host_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « remoting/host/ipc_util_posix.cc ('k') | remoting/host/register_support_host_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698