Index: chrome/browser/plugin_process_host.cc |
diff --git a/chrome/browser/plugin_process_host.cc b/chrome/browser/plugin_process_host.cc |
index 921f86008afc1fd8220963c6d1a3133e41b8d37f..107dadb5319ad1832349cdc0b05dcc46f97b6d64 100644 |
--- a/chrome/browser/plugin_process_host.cc |
+++ b/chrome/browser/plugin_process_host.cc |
@@ -30,6 +30,7 @@ |
#include "chrome/browser/renderer_host/browser_render_process_host.h" |
#include "chrome/browser/renderer_host/render_process_host.h" |
#include "chrome/browser/renderer_host/resource_dispatcher_host.h" |
+#include "chrome/common/chrome_descriptors.h" |
#include "chrome/common/chrome_paths.h" |
#include "chrome/common/chrome_plugin_lib.h" |
#include "chrome/common/chrome_switches.h" |
@@ -393,10 +394,9 @@ bool PluginProcessHost::Init(const WebPluginInfo& info, |
// This code is duplicated with browser_render_process_host.cc, but |
// there's not a good place to de-duplicate it. |
base::file_handle_mapping_vector fds_to_map; |
- int src_fd = -1, dest_fd = -1; |
- channel().GetClientFileDescriptorMapping(&src_fd, &dest_fd); |
- if (src_fd > -1) |
- fds_to_map.push_back(std::pair<int, int>(src_fd, dest_fd)); |
+ const int ipcfd = channel().GetClientFileDescriptor(); |
+ if (ipcfd > -1) |
+ fds_to_map.push_back(std::pair<int, int>(ipcfd, kPrimaryIPCChannel + 3)); |
base::LaunchApp(cmd_line.argv(), fds_to_map, false, &process); |
#endif |