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

Unified Diff: ppapi/proxy/serialized_var.cc

Issue 15806016: Update ppapi/ 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 | « ppapi/proxy/serialized_var.h ('k') | ppapi/proxy/truetype_font_singleton_resource.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/serialized_var.cc
diff --git a/ppapi/proxy/serialized_var.cc b/ppapi/proxy/serialized_var.cc
index 2f4a3967cff34e23b90a051b2f00d032c2968fec..1217a83ba5cf6b645257a02e11f29fa0c7d74e3a 100644
--- a/ppapi/proxy/serialized_var.cc
+++ b/ppapi/proxy/serialized_var.cc
@@ -56,7 +56,7 @@ SerializedVar::Inner::~Inner() {
}
PP_Var SerializedVar::Inner::GetVar() {
- DCHECK(serialization_rules_);
+ DCHECK(serialization_rules_.get());
#if defined(NACL_WIN64)
NOTREACHED();
@@ -74,7 +74,7 @@ PP_Var SerializedVar::Inner::GetVar() {
void SerializedVar::Inner::SetVar(PP_Var var) {
// Sanity check, when updating the var we should have received a
// serialization rules pointer already.
- DCHECK(serialization_rules_);
+ DCHECK(serialization_rules_.get());
var_ = var;
raw_var_data_.reset(NULL);
}
@@ -100,7 +100,7 @@ void SerializedVar::Inner::WriteToMessage(IPC::Message* m) const {
// that returns a var. This means the message handler didn't write to the
// output parameter, or possibly you used the wrong helper class
// (normally SerializedVarReturnValue).
- DCHECK(serialization_rules_);
+ DCHECK(serialization_rules_.get());
#ifndef NDEBUG
// We should only be serializing something once.
« no previous file with comments | « ppapi/proxy/serialized_var.h ('k') | ppapi/proxy/truetype_font_singleton_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698