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

Unified Diff: chrome/renderer/pepper/ppb_nacl_private_impl.cc

Issue 55463002: Remove PNaCl's RequestFirstInstall, use resource throttle instead (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reorder functions Created 7 years, 1 month 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: chrome/renderer/pepper/ppb_nacl_private_impl.cc
diff --git a/chrome/renderer/pepper/ppb_nacl_private_impl.cc b/chrome/renderer/pepper/ppb_nacl_private_impl.cc
index 6717bbacf5cf09cdc8a1c78e907d7df6412d4e55..18193f323316c06b94a23b4e0ab212c5013b4b2c 100644
--- a/chrome/renderer/pepper/ppb_nacl_private_impl.cc
+++ b/chrome/renderer/pepper/ppb_nacl_private_impl.cc
@@ -204,19 +204,6 @@ int32_t BrokerDuplicateHandle(PP_FileHandle source_handle,
#endif
}
-int32_t EnsurePnaclInstalled(PP_Instance instance,
- PP_CompletionCallback callback) {
- ppapi::thunk::EnterInstance enter(instance, callback);
- if (enter.failed())
- return enter.retval();
- if (!InitializePnaclResourceHost())
- return enter.SetResult(PP_ERROR_FAILED);
- g_pnacl_resource_host.Get()->EnsurePnaclInstalled(
- instance,
- enter.callback());
- return enter.SetResult(PP_OK_COMPLETIONPENDING);
-}
-
PP_FileHandle GetReadonlyPnaclFD(const char* filename) {
IPC::PlatformFileForTransit out_fd = IPC::InvalidPlatformFileForTransit();
IPC::Sender* sender = content::RenderThread::Get();
@@ -355,7 +342,6 @@ const PPB_NaCl_Private nacl_interface = {
&UrandomFD,
&Are3DInterfacesDisabled,
&BrokerDuplicateHandle,
- &EnsurePnaclInstalled,
&GetReadonlyPnaclFD,
&CreateTemporaryFile,
&GetNexeFd,
« no previous file with comments | « chrome/renderer/pepper/pnacl_translation_resource_host.cc ('k') | components/nacl/common/nacl_browser_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698