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

Unified Diff: chrome/renderer/chrome_ppapi_interfaces.cc

Issue 8440027: Change renderer_client interface for registering PPAPI Factories (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clean up renderer_main slightly 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
Index: chrome/renderer/chrome_ppapi_interfaces.cc
diff --git a/chrome/renderer/chrome_ppapi_interfaces.cc b/chrome/renderer/chrome_ppapi_interfaces.cc
index 9138cc85b6c22492fa0bb6d86e3b702b849467ad..734ef0766e5ce64ff69ff74823cbf0c4a77e77f1 100644
--- a/chrome/renderer/chrome_ppapi_interfaces.cc
+++ b/chrome/renderer/chrome_ppapi_interfaces.cc
@@ -10,6 +10,7 @@
#include "base/utf_string_conversions.h"
#include "chrome/common/render_messages.h"
#include "chrome/renderer/chrome_ppb_pdf_impl.h"
+#include "content/public/common/content_client.h"
jam 2011/11/02 21:42:41 nit: not needed
Dirk Pranke 2011/11/02 22:09:25 Done.
#include "content/public/common/content_switches.h"
#include "content/public/renderer/render_thread.h"
#include "ppapi/c/private/ppb_nacl_private.h"
@@ -88,16 +89,4 @@ const void* ChromePPAPIInterfaceFactory(const std::string& interface_name) {
return NULL;
}
-void InitializePPAPI() {
- webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager =
- webkit::ppapi::PpapiInterfaceFactoryManager::GetInstance();
- factory_manager->RegisterFactory(ChromePPAPIInterfaceFactory);
-}
-
-void UninitializePPAPI() {
- webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager =
- webkit::ppapi::PpapiInterfaceFactoryManager::GetInstance();
- factory_manager->UnregisterFactory(ChromePPAPIInterfaceFactory);
-}
-
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698