namespace {
template <typename Val>
-nacl::string MakeCommandLineArg(const char* key, const Val val) {
- nacl::stringstream ss;
+std::string MakeCommandLineArg(const char* key, const Val val) {
+ std::stringstream ss;
ss << key << val;
return ss.str();
}
size_t obj_files_size,
int32_t opt_level,
bool is_debug,
- const nacl::string &architecture_attributes) {
- typedef std::vector<nacl::string> Args;
+ const std::string &architecture_attributes) {
+ typedef std::vector<std::string> Args;
Args args;
// TODO(dschuff): This CL override is ugly. Change llc to default to
ErrorInfo* error_info,
PnaclResources* resources,
PP_PNaClOptions* pnacl_options,
- const nacl::string &architecture_attributes,
+ const std::string &architecture_attributes,
PnaclCoordinator* coordinator,
Plugin* plugin) {
PLUGIN_PRINTF(("PnaclStreamingTranslateThread::RunTranslate)\n"));
NACL_SRPC_RESULT_APP_ERROR) {
// The error message is only present if the error was returned from llc
TranslateFailed(PP_NACL_ERROR_PNACL_LLC_INTERNAL,
- nacl::string("Stream init failed: ") +
- nacl::string(params.outs()[0]->arrays.str));
+ std::string("Stream init failed: ") +
+ std::string(params.outs()[0]->arrays.str));
} else {
TranslateFailed(PP_NACL_ERROR_PNACL_LLC_INTERNAL,
"Stream init internal error");
void PnaclTranslateThread::TranslateFailed(
PP_NaClError err_code,
- const nacl::string& error_string) {
+ const std::string& error_string) {
PLUGIN_PRINTF(("PnaclTranslateThread::TranslateFailed (error_string='%s')\n",
error_string.c_str()));
pp::Core* core = pp::Module::Get()->core();
// Only use our message if one hasn't already been set by the coordinator
// (e.g. pexe load failed).
coordinator_error_info_->SetReport(err_code,
- nacl::string("PnaclCoordinator: ") +
+ std::string("PnaclCoordinator: ") +
error_string);
}
core->CallOnMainThread(0, report_translate_finished_, PP_ERROR_FAILED);