summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/ppapi/ppb_flash_clipboard_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/plugins/ppapi/ppb_flash_clipboard_impl.cc')
-rw-r--r--webkit/plugins/ppapi/ppb_flash_clipboard_impl.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/webkit/plugins/ppapi/ppb_flash_clipboard_impl.cc b/webkit/plugins/ppapi/ppb_flash_clipboard_impl.cc
index 73ad13e..fdffadf 100644
--- a/webkit/plugins/ppapi/ppb_flash_clipboard_impl.cc
+++ b/webkit/plugins/ppapi/ppb_flash_clipboard_impl.cc
@@ -18,6 +18,7 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebKitPlatformSupport.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
#include "webkit/plugins/ppapi/common.h"
+#include "webkit/plugins/ppapi/host_globals.h"
#include "webkit/plugins/ppapi/plugin_module.h"
#include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
#include "webkit/plugins/ppapi/resource_tracker.h"
@@ -64,7 +65,8 @@ PP_Bool IsFormatAvailable(PP_Instance instance_id,
PP_Flash_Clipboard_Type clipboard_type,
PP_Flash_Clipboard_Format format) {
// If you don't give us an instance, we don't give you anything.
- PluginInstance* instance = ResourceTracker::Get()->GetInstance(instance_id);
+ PluginInstance* instance =
+ HostGlobals::Get()->host_resource_tracker()->GetInstance(instance_id);
if (!instance)
return PP_FALSE;
@@ -82,7 +84,8 @@ PP_Bool IsFormatAvailable(PP_Instance instance_id,
PP_Var ReadPlainText(PP_Instance instance_id,
PP_Flash_Clipboard_Type clipboard_type) {
- PluginInstance* instance = ResourceTracker::Get()->GetInstance(instance_id);
+ PluginInstance* instance =
+ HostGlobals::Get()->host_resource_tracker()->GetInstance(instance_id);
if (!instance)
return PP_MakeNull();