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

Unified Diff: chrome/renderer/chrome_ppapi_interfaces.cc

Issue 8591035: Clean up disable_nacl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_ppapi_interfaces.cc
diff --git a/chrome/renderer/chrome_ppapi_interfaces.cc b/chrome/renderer/chrome_ppapi_interfaces.cc
index 767c8eab04ebd354f3647b03738ca48298b45c06..a01c1ee52a5cd5b4fe6b6a2171962d9a58fe91f1 100644
--- a/chrome/renderer/chrome_ppapi_interfaces.cc
+++ b/chrome/renderer/chrome_ppapi_interfaces.cc
@@ -25,11 +25,11 @@ using content::RenderThread;
namespace chrome {
+#if !defined(DISABLE_NACL)
// Launch NaCl's sel_ldr process.
bool LaunchSelLdr(const char* alleged_url, int socket_count,
void* imc_handles, void* nacl_process_handle,
int* nacl_process_id) {
-#if !defined(DISABLE_NACL)
std::vector<nacl::FileDescriptor> sockets;
base::ProcessHandle nacl_process;
if (!RenderThread::Get()->Send(
@@ -48,9 +48,6 @@ bool LaunchSelLdr(const char* alleged_url, int socket_count,
}
*static_cast<nacl::Handle*>(nacl_process_handle) = nacl_process;
return true;
-#else
- return false;
-#endif
}
int UrandomFD(void) {
@@ -79,10 +76,13 @@ class PPB_NaCl_Impl {
return &ppb_nacl;
}
};
+#endif // DISABLE_NACL
const void* ChromePPAPIInterfaceFactory(const std::string& interface_name) {
+#if !defined(DISABLE_NACL)
if (interface_name == PPB_NACL_PRIVATE_INTERFACE)
return chrome::PPB_NaCl_Impl::GetInterface();
+#endif // DISABLE_NACL
if (interface_name == PPB_PDF_INTERFACE)
return chrome::PPB_PDF_Impl::GetInterface();
return NULL;
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698