Chromium Code Reviews| Index: content/browser/child_process_launcher.cc |
| diff --git a/content/browser/child_process_launcher.cc b/content/browser/child_process_launcher.cc |
| index b5bb3f491f070688914d8f2f8146969509e341db..b7f6914361d8b8ed09639dd6b90b5d5a8d832e44 100644 |
| --- a/content/browser/child_process_launcher.cc |
| +++ b/content/browser/child_process_launcher.cc |
| @@ -38,6 +38,7 @@ |
| #endif |
| #if defined(OS_POSIX) |
| +#include "base/metrics/stats_table.h" |
| #include "base/posix/global_descriptors.h" |
| #endif |
| @@ -207,6 +208,12 @@ class ChildProcessLauncher::Context |
| files_to_register.push_back( |
| FileDescriptorInfo(kPrimaryIPCChannel, |
| base::FileDescriptor(ipcfd, false))); |
| + base::StatsTable* stats_table; |
| + if ((stats_table = base::StatsTable::current()) != NULL) { |
|
jar (doing other things)
2013/08/21 01:09:46
nit: initialize during the definition, rather than
rmcilroy
2013/08/21 10:37:16
Done.
|
| + files_to_register.push_back( |
| + FileDescriptorInfo(kStatsTableSharedMemFd, |
| + stats_table->GetSharedMemoryHandle())); |
|
jar (doing other things)
2013/08/21 01:09:46
nit: indent: align under first argument.
rmcilroy
2013/08/21 10:37:16
I was copying line 210 above. I've now changed bo
|
| + } |
| GetContentClient()->browser()-> |
| GetAdditionalMappedFilesForChildProcess(*cmd_line, child_process_id, |
| @@ -228,7 +235,12 @@ class ChildProcessLauncher::Context |
| files_to_register.push_back( |
| FileDescriptorInfo(kPrimaryIPCChannel, |
| base::FileDescriptor(ipcfd, false))); |
| - |
| + base::StatsTable* stats_table; |
| + if ((stats_table = base::StatsTable::current()) != NULL) { |
|
jar (doing other things)
2013/08/21 01:09:46
nit: initialize in definition, rather than during
rmcilroy
2013/08/21 10:37:16
Done.
|
| + files_to_register.push_back( |
| + FileDescriptorInfo(kStatsTableSharedMemFd, |
| + stats_table->GetSharedMemoryHandle())); |
|
jar (doing other things)
2013/08/21 01:09:46
nit: indent
rmcilroy
2013/08/21 10:37:16
Done.
|
| + } |
| #if !defined(OS_MACOSX) |
| GetContentClient()->browser()-> |
| GetAdditionalMappedFilesForChildProcess(*cmd_line, child_process_id, |