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

Side by Side Diff: components/nacl/zygote/nacl_fork_delegate_linux.cc

Issue 2779893005: Continue to clean c_str() calls. (Closed)
Patch Set: Revert changes in font_service_app.cc Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/nacl/zygote/nacl_fork_delegate_linux.h" 5 #include "components/nacl/zygote/nacl_fork_delegate_linux.h"
6 6
7 #include <signal.h> 7 #include <signal.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 #include <sys/resource.h> 10 #include <sys/resource.h>
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 pass_through_vars = base::SplitString( 452 pass_through_vars = base::SplitString(
453 pass_through_string, std::string(1, kNaClEnvPassthroughDelimiter), 453 pass_through_string, std::string(1, kNaClEnvPassthroughDelimiter),
454 base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 454 base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
455 } 455 }
456 pass_through_vars.push_back(kNaClExeStderr); 456 pass_through_vars.push_back(kNaClExeStderr);
457 pass_through_vars.push_back(kNaClExeStdout); 457 pass_through_vars.push_back(kNaClExeStdout);
458 pass_through_vars.push_back(kNaClVerbosity); 458 pass_through_vars.push_back(kNaClVerbosity);
459 pass_through_vars.push_back(sandbox::kSandboxEnvironmentApiRequest); 459 pass_through_vars.push_back(sandbox::kSandboxEnvironmentApiRequest);
460 for (size_t i = 0; i < pass_through_vars.size(); ++i) { 460 for (size_t i = 0; i < pass_through_vars.size(); ++i) {
461 std::string temp; 461 std::string temp;
462 if (env->GetVar(pass_through_vars[i].c_str(), &temp)) 462 if (env->GetVar(pass_through_vars[i], &temp))
463 options->environ[pass_through_vars[i]] = temp; 463 options->environ[pass_through_vars[i]] = temp;
464 } 464 }
465 } 465 }
466 466
467 } // namespace nacl 467 } // namespace nacl
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698