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

Unified Diff: content/common/resource_messages.cc

Issue 649533003: C++11 declares a type safe null pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Presubmit errors 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 | « content/common/plugin_list_unittest.cc ('k') | content/common/sandbox_linux/bpf_gpu_policy_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/resource_messages.cc
diff --git a/content/common/resource_messages.cc b/content/common/resource_messages.cc
index 1e7632db9ea7925423f22a7a9d584004e8fa5c51..98d843699ae1c8ea1c0816b0f2b8300fe4803fbd 100644
--- a/content/common/resource_messages.cc
+++ b/content/common/resource_messages.cc
@@ -11,7 +11,7 @@ namespace IPC {
void ParamTraits<scoped_refptr<net::HttpResponseHeaders> >::Write(
Message* m, const param_type& p) {
- WriteParam(m, p.get() != NULL);
+ WriteParam(m, p.get() != nullptr);
if (p.get()) {
// Do not disclose Set-Cookie headers over IPC.
p->Persist(m, net::HttpResponseHeaders::PERSIST_SANS_COOKIES);
@@ -135,7 +135,7 @@ void ParamTraits<storage::DataElement>::Log(const param_type& p,
void ParamTraits<scoped_refptr<content::ResourceDevToolsInfo> >::Write(
Message* m, const param_type& p) {
- WriteParam(m, p.get() != NULL);
+ WriteParam(m, p.get() != nullptr);
if (p.get()) {
WriteParam(m, p->http_status_code);
WriteParam(m, p->http_status_text);
@@ -261,7 +261,7 @@ void ParamTraits<net::LoadTimingInfo>::Log(const param_type& p,
void ParamTraits<scoped_refptr<content::ResourceRequestBody> >::Write(
Message* m,
const param_type& p) {
- WriteParam(m, p.get() != NULL);
+ WriteParam(m, p.get() != nullptr);
if (p.get()) {
WriteParam(m, *p->elements());
WriteParam(m, p->identifier());
« no previous file with comments | « content/common/plugin_list_unittest.cc ('k') | content/common/sandbox_linux/bpf_gpu_policy_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698