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

Unified Diff: chrome/browser/memory_details_mac.cc

Issue 7714018: Give plug-in processes an executable heap and disable PIE/ASLR for Native (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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: chrome/browser/memory_details_mac.cc
===================================================================
--- chrome/browser/memory_details_mac.cc (revision 97969)
+++ chrome/browser/memory_details_mac.cc (working copy)
@@ -113,11 +113,24 @@
}
}
+ // The helper might show up as these different flavors depending on the
+ // executable flags required.
+ std::vector<std::string> helper_names;
+ helper_names.push_back(chrome::kHelperProcessExecutableName);
+ for (const char* const* suffix = chrome::kHelperFlavorSuffixes;
+ *suffix;
+ ++suffix) {
+ std::string helper_name = chrome::kHelperProcessExecutableName;
+ helper_name.append(1, ' ');
+ helper_name.append(*suffix);
+ helper_names.push_back(helper_name);
+ }
+
// Get PIDs of helpers.
std::vector<base::ProcessId> helper_pids;
- {
- base::NamedProcessIterator helper_it(chrome::kHelperProcessExecutableName,
- NULL);
+ for (size_t i = 0; i < helper_names.size(); ++i) {
+ std::string helper_name = helper_names[i];
+ base::NamedProcessIterator helper_it(helper_name, NULL);
while (const base::ProcessEntry* entry = helper_it.NextProcessEntry()) {
helper_pids.push_back(entry->pid());
all_pids.push_back(entry->pid());
« no previous file with comments | « chrome/browser/importer/profile_import_process_host.cc ('k') | chrome/browser/nacl_host/nacl_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698