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

Unified Diff: content/common/npobject_proxy.cc

Issue 14081010: Cleanup: Remove unnecessary ".get()" from scoped_ptrs<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix some gtk issues Created 7 years, 8 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 | « content/common/np_channel_base.cc ('k') | content/common/resource_messages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/npobject_proxy.cc
diff --git a/content/common/npobject_proxy.cc b/content/common/npobject_proxy.cc
index 4203b132aa46ad3c576c45f11344b5111bddfe0f..eb01acb5c2ab15a0d60ecae6f9bab9c1633693ff 100644
--- a/content/common/npobject_proxy.cc
+++ b/content/common/npobject_proxy.cc
@@ -70,7 +70,7 @@ NPObjectProxy::NPObjectProxy(
}
NPObjectProxy::~NPObjectProxy() {
- if (channel_.get()) {
+ if (channel_) {
// This NPObjectProxy instance is now invalid and should not be reused for
// requests initiated by plugins. We may receive requests for the
// same NPObject in the context of the outgoing NPObjectMsg_Release call.
@@ -94,7 +94,7 @@ NPObject* NPObjectProxy::Create(NPChannelBase* channel,
}
bool NPObjectProxy::Send(IPC::Message* msg) {
- if (channel_.get())
+ if (channel_)
return channel_->Send(msg);
delete msg;
« no previous file with comments | « content/common/np_channel_base.cc ('k') | content/common/resource_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698