| Index: chrome/browser/extensions/api/capture_web_contents_function.cc
|
| diff --git a/chrome/browser/extensions/api/capture_web_contents_function.cc b/chrome/browser/extensions/api/capture_web_contents_function.cc
|
| index a2f65b35ae2c8f1a8b40ef2aaeb5890b2bb0ade6..ef28f83fe422e9270ba45c1d21e168f8e59d8bd4 100644
|
| --- a/chrome/browser/extensions/api/capture_web_contents_function.cc
|
| +++ b/chrome/browser/extensions/api/capture_web_contents_function.cc
|
| @@ -95,21 +95,7 @@ void CaptureWebContentsFunction::CopyFromBackingStoreComplete(
|
| return;
|
| }
|
|
|
| - // Ask the renderer for a snapshot of the page.
|
| - RenderWidgetHost* render_widget_host = contents->GetRenderViewHost();
|
| - render_widget_host->GetSnapshotFromRenderer(
|
| - gfx::Rect(),
|
| - base::Bind(&CaptureWebContentsFunction::GetSnapshotFromRendererComplete,
|
| - this));
|
| -}
|
| -
|
| -void CaptureWebContentsFunction::GetSnapshotFromRendererComplete(
|
| - bool succeeded,
|
| - const SkBitmap& bitmap) {
|
| - if (succeeded)
|
| - OnCaptureSuccess(bitmap);
|
| - else
|
| - OnCaptureFailure(FAILURE_REASON_UNKNOWN);
|
| + OnCaptureFailure(FAILURE_REASON_UNKNOWN);
|
| }
|
|
|
| void CaptureWebContentsFunction::OnCaptureSuccess(const SkBitmap& bitmap) {
|
|
|