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

Unified Diff: content/browser/utility_process_host_impl.cc

Issue 621613002: Refactoring: Make IPC::Channel::TakeClientFileDescriptor() a ScopedFD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing Mac build 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
Index: content/browser/utility_process_host_impl.cc
diff --git a/content/browser/utility_process_host_impl.cc b/content/browser/utility_process_host_impl.cc
index 36f90972503e1e01aa1daf7509d2fb12ae6a62d8..848d20897dbb44aa7b18b4165a9f395f143bfbd5 100644
--- a/content/browser/utility_process_host_impl.cc
+++ b/content/browser/utility_process_host_impl.cc
@@ -65,8 +65,8 @@ class UtilitySandboxedProcessLauncherDelegate
virtual base::EnvironmentMap GetEnvironment() override {
return env_;
}
- virtual int GetIpcFd() override {
- return ipc_fd_;
+ virtual base::ScopedFD TakeIpcFd() override {
+ return ipc_fd_.Pass();
}
#endif // OS_WIN
@@ -79,7 +79,7 @@ class UtilitySandboxedProcessLauncherDelegate
#elif defined(OS_POSIX)
base::EnvironmentMap env_;
bool no_sandbox_;
- int ipc_fd_;
+ base::ScopedFD ipc_fd_;
#endif // OS_WIN
};

Powered by Google App Engine
This is Rietveld 408576698