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

Unified Diff: content/browser/ppapi_plugin_process_host.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/ppapi_plugin_process_host.cc
diff --git a/content/browser/ppapi_plugin_process_host.cc b/content/browser/ppapi_plugin_process_host.cc
index 8346abff65e1c664aa39b1f4f507228c88387f53..34c3a7d651d7e1a8b9a74e7ceff44a37725b736c 100644
--- a/content/browser/ppapi_plugin_process_host.cc
+++ b/content/browser/ppapi_plugin_process_host.cc
@@ -76,15 +76,15 @@ class PpapiPluginSandboxedProcessLauncherDelegate
.GetSwitchValueNative(switches::kPpapiPluginLauncher);
return !is_broker_ && plugin_launcher.empty() && info_.is_sandboxed;
}
- virtual int GetIpcFd() override {
- return ipc_fd_;
+ virtual base::ScopedFD TakeIpcFd() override {
+ return ipc_fd_.Pass();
}
#endif // OS_WIN
private:
#if defined(OS_POSIX)
const PepperPluginInfo& info_;
- int ipc_fd_;
+ base::ScopedFD ipc_fd_;
#endif // OS_POSIX
bool is_broker_;

Powered by Google App Engine
This is Rietveld 408576698