Make shared memory segments writable only by their rightful owners.

BUG=143859
TEST=Chrome's UI still works on Linux and Chrome OS
Review URL: https://chromiumcodereview.appspot.com/10854242

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158289 0039d316-1c4b-4281-b951-d872f2087c98
std::vector<std::string> GetDisplayNames(const std::vector<XID>& output_ids) {
  std::vector<std::string> names;
  for (size_t i = 0; i < output_ids.size(); ++i) {
    std::string display_name;
    if (GetOutputDeviceData(output_ids[i], NULL, NULL, &display_name))
      names.push_back(display_name);
  }
  return names;
}

std::vector<std::string> GetDisplayNames(const std::vector<XID>& output_ids) {
  std::vector<std::string> names;
  for (size_t i = 0; i < output_ids.size(); ++i) {
    std::string display_name;
    if (GetOutputDeviceData(output_ids[i], NULL, NULL, &display_name))
      names.push_back(display_name);
  }
  return names;
}
