| Index: content/browser/renderer_host/render_view_host_impl.cc
|
| diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
|
| index ed07949e3563b18191902190dfab964991deaa2e..26daa67906fc35be8d1629144362b60ceed69b14 100644
|
| --- a/content/browser/renderer_host/render_view_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_view_host_impl.cc
|
| @@ -68,7 +68,6 @@
|
| #include "ui/gfx/image/image_skia.h"
|
| #include "ui/gfx/native_widget_types.h"
|
| #include "ui/shell_dialogs/selected_file_info.h"
|
| -#include "ui/snapshot/snapshot.h"
|
| #include "webkit/browser/fileapi/isolated_context.h"
|
|
|
| #if defined(OS_MACOSX)
|
| @@ -993,7 +992,6 @@ bool RenderViewHostImpl::OnMessageReceived(const IPC::Message& msg) {
|
| OnSelectionBoundsChanged)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_ScriptEvalResponse, OnScriptEvalResponse)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_DidZoomURL, OnDidZoomURL)
|
| - IPC_MESSAGE_HANDLER(ViewHostMsg_GetWindowSnapshot, OnGetWindowSnapshot)
|
| IPC_MESSAGE_HANDLER(DesktopNotificationHostMsg_RequestPermission,
|
| OnRequestDesktopNotificationPermission)
|
| IPC_MESSAGE_HANDLER(DesktopNotificationHostMsg_Show,
|
| @@ -1994,29 +1992,6 @@ void RenderViewHostImpl::OnDomOperationResponse(
|
| Details<DomOperationNotificationDetails>(&details));
|
| }
|
|
|
| -void RenderViewHostImpl::OnGetWindowSnapshot(const int snapshot_id) {
|
| - std::vector<unsigned char> png;
|
| -
|
| - // This feature is behind the kEnableGpuBenchmarking command line switch
|
| - // because it poses security concerns and should only be used for testing.
|
| - const CommandLine& command_line = *CommandLine::ForCurrentProcess();
|
| - if (command_line.HasSwitch(switches::kEnableGpuBenchmarking)) {
|
| - gfx::Rect view_bounds = GetView()->GetViewBounds();
|
| - gfx::Rect snapshot_bounds(view_bounds.size());
|
| - gfx::Size snapshot_size = snapshot_bounds.size();
|
| -
|
| - if (ui::GrabViewSnapshot(GetView()->GetNativeView(),
|
| - &png, snapshot_bounds)) {
|
| - Send(new ViewMsg_WindowSnapshotCompleted(
|
| - GetRoutingID(), snapshot_id, snapshot_size, png));
|
| - return;
|
| - }
|
| - }
|
| -
|
| - Send(new ViewMsg_WindowSnapshotCompleted(
|
| - GetRoutingID(), snapshot_id, gfx::Size(), png));
|
| -}
|
| -
|
| #if defined(OS_MACOSX) || defined(OS_ANDROID)
|
| void RenderViewHostImpl::OnShowPopup(
|
| const ViewHostMsg_ShowPopup_Params& params) {
|
|
|