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

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

Issue 418423002: Pepper: Stop using SRPC for irt_open_resource(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 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 ffce56320dedd85df0dc9ae4d7f82fa6291d2142..3e198e7e6900a062b800cc7aec8754a6c93ed1c3 100644
--- a/ppapi/native_client/src/trusted/plugin/service_runtime.cc
+++ b/ppapi/native_client/src/trusted/plugin/service_runtime.cc
@@ -176,6 +176,13 @@ void PluginReverseInterface::OpenManifestEntry_MainThreadContinuation(
UNREFERENCED_PARAMETER(err);
// CallOnMainThread continuations always called with err == PP_OK.
+ // This method should only ever be called from the PNaCl translator, as the
+ // IRT is not available there.
+ if (service_runtime_->main_service_runtime()) {
+ NaClLog(LOG_ERROR,
Mark Seaborn 2014/08/28 21:33:49 Can you make this reject the request, as a securit
teravest 2014/09/04 22:13:30 Sure, I've changed this to reject the request (and
+ "OpenManifestEntry should only be used by PNaCl translator.\n");
+ }
+
NaClLog(4, "Entered OpenManifestEntry_MainThreadContinuation\n");
// Because p is owned by the callback of this invocation, so it is necessary

Powered by Google App Engine
This is Rietveld 408576698