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

Unified Diff: content/browser/zygote_host/zygote_host_impl_linux.cc

Issue 864163003: Rename base::Process::pid() to Pid() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: content/browser/zygote_host/zygote_host_impl_linux.cc
diff --git a/content/browser/zygote_host/zygote_host_impl_linux.cc b/content/browser/zygote_host/zygote_host_impl_linux.cc
index 2a2339bf03bd314b7bd50562d60629c17230a201..f9e69a2b13d80e8c68b2097a71847599530ac083 100644
--- a/content/browser/zygote_host/zygote_host_impl_linux.cc
+++ b/content/browser/zygote_host/zygote_host_impl_linux.cc
@@ -187,15 +187,15 @@ void ZygoteHostImpl::Init(const std::string& sandbox_cmd) {
fds[0], kZygoteHelloMessage, sizeof(kZygoteHelloMessage), &pid_));
CHECK_GT(pid_, 1);
- if (process.pid() != pid_) {
+ if (process.Pid() != pid_) {
// Reap the sandbox.
- base::EnsureProcessGetsReaped(process.pid());
+ base::EnsureProcessGetsReaped(process.Pid());
}
} else {
// Not using the SUID sandbox.
// Note that ~base::Process() will reset the internal value, but there's no
// real "handle" on POSIX so that is safe.
- pid_ = process.pid();
+ pid_ = process.Pid();
}
close(fds[1]);
@@ -481,7 +481,7 @@ void ZygoteHostImpl::AdjustRendererOOMScore(base::ProcessHandle pid,
sandbox_helper_process =
base::LaunchProcess(adj_oom_score_cmdline, options);
if (sandbox_helper_process.IsValid())
- base::EnsureProcessGetsReaped(sandbox_helper_process.pid());
+ base::EnsureProcessGetsReaped(sandbox_helper_process.Pid());
} else if (!using_suid_sandbox_) {
if (!base::AdjustOOMScore(pid, score))
PLOG(ERROR) << "Failed to adjust OOM score of renderer with pid " << pid;

Powered by Google App Engine
This is Rietveld 408576698