Index: content/browser/renderer_host/pepper/pepper_message_filter.cc |
diff --git a/content/browser/renderer_host/pepper/pepper_message_filter.cc b/content/browser/renderer_host/pepper/pepper_message_filter.cc |
index 76362f023418ee0448c66474b02a6f59061fc136..1af7b97e42865684e3aceddaf42ecf9f31ea6aaa 100644 |
--- a/content/browser/renderer_host/pepper/pepper_message_filter.cc |
+++ b/content/browser/renderer_host/pepper/pepper_message_filter.cc |
@@ -45,12 +45,6 @@ |
#include "ppapi/shared_impl/private/net_address_private_impl.h" |
#include "ppapi/shared_impl/private/ppb_host_resolver_shared.h" |
-#ifdef OS_WIN |
-#include <windows.h> |
-#elif defined(OS_MACOSX) |
-#include <CoreServices/CoreServices.h> |
-#endif |
- |
using ppapi::NetAddressPrivateImpl; |
namespace content { |
@@ -190,7 +184,6 @@ bool PepperMessageFilter::OnMessageReceived(const IPC::Message& msg, |
OnX509CertificateParseDER); |
// Flash messages. |
- IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBFlash_UpdateActivity, OnUpdateActivity) |
IPC_MESSAGE_HANDLER(PepperMsg_GetLocalDataRestrictions, |
OnGetLocalDataRestrictions) |
@@ -710,22 +703,6 @@ void PepperMessageFilter::OnX509CertificateParseDER( |
result); |
} |
-void PepperMessageFilter::OnUpdateActivity() { |
-#if defined(OS_WIN) |
- // Reading then writing back the same value to the screensaver timeout system |
- // setting resets the countdown which prevents the screensaver from turning |
- // on "for a while". As long as the plugin pings us with this message faster |
- // than the screensaver timeout, it won't go on. |
- int value = 0; |
- if (SystemParametersInfo(SPI_GETSCREENSAVETIMEOUT, 0, &value, 0)) |
- SystemParametersInfo(SPI_SETSCREENSAVETIMEOUT, value, NULL, 0); |
-#elif defined(OS_MACOSX) |
- UpdateSystemActivity(OverallAct); |
-#else |
- // TODO(brettw) implement this for other platforms. |
-#endif |
-} |
- |
void PepperMessageFilter::OnGetLocalDataRestrictions( |
const GURL& document_url, |
const GURL& plugin_url, |