Index: extensions/browser/api/capture_web_contents_function.cc |
diff --git a/extensions/browser/api/capture_web_contents_function.cc b/extensions/browser/api/capture_web_contents_function.cc |
index a888284deb42913e5327e45f940c5a2e4f8c6039..611af6fbfe2e13550dbf6053a34dfb8e549ecff1 100644 |
--- a/extensions/browser/api/capture_web_contents_function.cc |
+++ b/extensions/browser/api/capture_web_contents_function.cc |
@@ -91,9 +91,9 @@ bool CaptureWebContentsFunction::RunAsync() { |
} |
void CaptureWebContentsFunction::CopyFromBackingStoreComplete( |
- bool succeeded, |
- const SkBitmap& bitmap) { |
- if (succeeded) { |
+ const SkBitmap& bitmap, |
+ content::ReadbackResponse response) { |
+ if (response == content::READBACK_SUCCESS) { |
OnCaptureSuccess(bitmap); |
return; |
} |