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

Unified 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, 9 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: components/nacl/zygote/nacl_fork_delegate_linux.cc
diff --git a/components/nacl/zygote/nacl_fork_delegate_linux.cc b/components/nacl/zygote/nacl_fork_delegate_linux.cc
index 40e3a53079c22feded1a0a8b6e1ade9d31768b46..2eb3f83b65b3a18d26a73c57a701fa5ba271010d 100644
--- a/components/nacl/zygote/nacl_fork_delegate_linux.cc
+++ b/components/nacl/zygote/nacl_fork_delegate_linux.cc
@@ -459,7 +459,7 @@ void NaClForkDelegate::AddPassthroughEnvToOptions(
pass_through_vars.push_back(sandbox::kSandboxEnvironmentApiRequest);
for (size_t i = 0; i < pass_through_vars.size(); ++i) {
std::string temp;
- if (env->GetVar(pass_through_vars[i].c_str(), &temp))
+ if (env->GetVar(pass_through_vars[i], &temp))
options->environ[pass_through_vars[i]] = temp;
}
}

Powered by Google App Engine
This is Rietveld 408576698