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

Side by Side Diff: ppapi/native_client/src/trusted/plugin/service_runtime.cc

Issue 469423002: NaCl: Send fatal log messages via shared memory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove commented out line Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 * Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #define NACL_LOG_MODULE_NAME "Plugin_ServiceRuntime" 7 #define NACL_LOG_MODULE_NAME "Plugin_ServiceRuntime"
8 8
9 #include "ppapi/native_client/src/trusted/plugin/service_runtime.h" 9 #include "ppapi/native_client/src/trusted/plugin/service_runtime.h"
10 10
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 NaClCondVarDtor(&cond_); 581 NaClCondVarDtor(&cond_);
582 NaClMutexDtor(&mu_); 582 NaClMutexDtor(&mu_);
583 } 583 }
584 584
585 void ServiceRuntime::set_exit_status(int exit_status) { 585 void ServiceRuntime::set_exit_status(int exit_status) {
586 nacl::MutexLocker take(&mu_); 586 nacl::MutexLocker take(&mu_);
587 if (main_service_runtime_) 587 if (main_service_runtime_)
588 plugin_->set_exit_status(exit_status & 0xff); 588 plugin_->set_exit_status(exit_status & 0xff);
589 } 589 }
590 590
591 nacl::string ServiceRuntime::GetCrashLogOutput() {
592 if (NULL != subprocess_.get()) {
593 return subprocess_->GetCrashLogOutput();
594 } else {
595 return std::string();
596 }
597 }
598
599 } // namespace plugin 591 } // namespace plugin
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698