Index: chrome/browser/nacl_process_host.cc |
diff --git a/chrome/browser/nacl_process_host.cc b/chrome/browser/nacl_process_host.cc |
index 72db5615126d88deb5b2044df8c3b7f207d65b8c..bb13ab7c4428d368f33f82e0d18ab49f7230d739 100644 |
--- a/chrome/browser/nacl_process_host.cc |
+++ b/chrome/browser/nacl_process_host.cc |
@@ -39,6 +39,10 @@ NaClProcessHost::NaClProcessHost( |
bool NaClProcessHost::Launch(ResourceMessageFilter* renderer_msg_filter, |
const int descriptor, |
nacl::FileDescriptor* handle) { |
+#ifdef DISABLE_NACL |
+ NOTIMPLEMENTED() << "Native Client disabled at build time"; |
+ return false; |
+#else |
nacl::Handle pair[2]; |
bool success = false; |
// Create a connected socket |
@@ -80,6 +84,7 @@ bool NaClProcessHost::Launch(ResourceMessageFilter* renderer_msg_filter, |
#endif |
return true; |
+#endif // DISABLE_NACL |
} |
bool NaClProcessHost::LaunchSelLdr(ResourceMessageFilter* renderer_msg_filter, |
@@ -184,4 +189,3 @@ URLRequestContext* NaClProcessHost::GetRequestContext( |
const ViewHostMsg_Resource_Request& request_data) { |
return NULL; |
} |
- |