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

Unified Diff: chrome/browser/ppapi_plugin_process_host.cc

Issue 6186008: Linux: fix a bunch of NULL vs. 0 issues spotted by gcc 4.5. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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 | « chrome/browser/history/top_sites.cc ('k') | chrome/browser/process_singleton_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ppapi_plugin_process_host.cc
diff --git a/chrome/browser/ppapi_plugin_process_host.cc b/chrome/browser/ppapi_plugin_process_host.cc
index c90d1f4eda982bce7bfb8968c6e73db520b33444..225cc80ed1475393ea0553c2b998eea1d7c729b6 100644
--- a/chrome/browser/ppapi_plugin_process_host.cc
+++ b/chrome/browser/ppapi_plugin_process_host.cc
@@ -28,7 +28,7 @@ void PpapiPluginProcessHost::Init(const FilePath& path,
reply_msg_.reset(reply_msg);
if (!CreateChannel()) {
- ReplyToRenderer(NULL, IPC::ChannelHandle());
+ ReplyToRenderer(base::kNullProcessHandle, IPC::ChannelHandle());
return;
}
@@ -38,7 +38,7 @@ void PpapiPluginProcessHost::Init(const FilePath& path,
FilePath exe_path = ChildProcessHost::GetChildPath(plugin_launcher.empty());
if (exe_path.empty()) {
- ReplyToRenderer(NULL, IPC::ChannelHandle());
+ ReplyToRenderer(base::kNullProcessHandle, IPC::ChannelHandle());
return;
}
@@ -92,13 +92,13 @@ void PpapiPluginProcessHost::OnChannelConnected(int32 peer_pid) {
PpapiMsg_LoadPlugin* msg = new PpapiMsg_LoadPlugin(
plugins_renderer_handle, plugin_path_, filter_->render_process_id());
if (!Send(msg)) // Just send an empty handle on failure.
- ReplyToRenderer(NULL, IPC::ChannelHandle());
+ ReplyToRenderer(base::kNullProcessHandle, IPC::ChannelHandle());
// This function will result in OnChannelCreated getting called to finish.
}
void PpapiPluginProcessHost::OnChannelError() {
if (reply_msg_.get())
- ReplyToRenderer(NULL, IPC::ChannelHandle());
+ ReplyToRenderer(base::kNullProcessHandle, IPC::ChannelHandle());
}
void PpapiPluginProcessHost::OnPluginLoaded(
« no previous file with comments | « chrome/browser/history/top_sites.cc ('k') | chrome/browser/process_singleton_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698