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

Unified Diff: ppapi/native_client/src/trusted/plugin/service_runtime.cc

Issue 315753003: Pepper: Miscellaneous trusted plugin cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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: ppapi/native_client/src/trusted/plugin/service_runtime.cc
diff --git a/ppapi/native_client/src/trusted/plugin/service_runtime.cc b/ppapi/native_client/src/trusted/plugin/service_runtime.cc
index 6a7b9b52ffb641575b63ad3c861e48dc0507c50e..75ccb1c2a8b94c83863075a56d50ac69d31cdefd 100644
--- a/ppapi/native_client/src/trusted/plugin/service_runtime.cc
+++ b/ppapi/native_client/src/trusted/plugin/service_runtime.cc
@@ -574,8 +574,13 @@ bool ServiceRuntime::StartModule() {
}
NaClLog(4, "ServiceRuntime::StartModule (load_status=%d)\n", load_status);
- if (main_service_runtime_)
- plugin_->ReportSelLdrLoadStatus(load_status);
+ if (main_service_runtime_) {
+ if (load_status < 0 || load_status > NACL_ERROR_CODE_MAX)
+ load_status = LOAD_STATUS_UNKNOWN;
+ GetNaClInterface()->ReportSelLdrStatus(plugin_->pp_instance(),
+ load_status,
+ NACL_ERROR_CODE_MAX);
+ }
if (LOAD_OK != load_status) {
if (main_service_runtime_) {
« no previous file with comments | « ppapi/native_client/src/trusted/plugin/plugin.cc ('k') | ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698