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

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

Issue 14683004: Check that the PNaCl cache hash is truly derived from the bitcode content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 7 years, 8 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
« no previous file with comments | « chrome/chrome_renderer.gypi ('k') | chrome/renderer/pepper/ppb_nacl_hash_private_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/pepper/chrome_ppapi_interfaces.cc
diff --git a/chrome/renderer/pepper/chrome_ppapi_interfaces.cc b/chrome/renderer/pepper/chrome_ppapi_interfaces.cc
index 91f5d3b545a1e5084e7bd037b9f9756de83de18e..b78b1b1aaab04cbee44543bacd8d12fc42d2265e 100644
--- a/chrome/renderer/pepper/chrome_ppapi_interfaces.cc
+++ b/chrome/renderer/pepper/chrome_ppapi_interfaces.cc
@@ -4,8 +4,10 @@
#include "chrome/renderer/pepper/chrome_ppapi_interfaces.h"
+#include "chrome/renderer/pepper/ppb_nacl_hash_private_impl.h"
#include "chrome/renderer/pepper/ppb_nacl_private_impl.h"
#include "chrome/renderer/pepper/ppb_pdf_impl.h"
+#include "ppapi/c/private/ppb_nacl_hash_private.h"
#include "ppapi/c/private/ppb_nacl_private.h"
#include "ppapi/c/private/ppb_pdf.h"
#include "webkit/plugins/ppapi/ppapi_interface_factory.h"
@@ -14,6 +16,8 @@ namespace chrome {
const void* ChromePPAPIInterfaceFactory(const std::string& interface_name) {
#if !defined(DISABLE_NACL)
+ if (interface_name == PPB_NACL_HASH_PRIVATE_INTERFACE)
+ return PPB_NaCl_Hash_Private_Impl::GetInterface();
if (interface_name == PPB_NACL_PRIVATE_INTERFACE)
return PPB_NaCl_Private_Impl::GetInterface();
#endif // DISABLE_NACL
« no previous file with comments | « chrome/chrome_renderer.gypi ('k') | chrome/renderer/pepper/ppb_nacl_hash_private_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698