Index: chrome/browser/automation/testing_automation_provider.cc |
=================================================================== |
--- chrome/browser/automation/testing_automation_provider.cc (revision 107646) |
+++ chrome/browser/automation/testing_automation_provider.cc (working copy) |
@@ -6191,6 +6191,12 @@ |
void TestingAutomationProvider::CaptureEntirePageJSON( |
DictionaryValue* args, |
IPC::Message* reply_message) { |
+#if defined(OS_LINUX) |
+ // See crbug.com/89777. |
+ AutomationJSONReply(this, reply_message).SendError( |
+ "Taking a page snapshot is not supported on this platform"); |
+ return; |
+#endif |
if (SendErrorIfModalDialogActive(this, reply_message)) |
return; |
@@ -6214,8 +6220,7 @@ |
FilePath path(path_str); |
// This will delete itself when finished. |
PageSnapshotTaker* snapshot_taker = new PageSnapshotTaker( |
- this, reply_message, |
- TabContentsWrapper::GetCurrentWrapperForContents(tab_contents), path); |
+ this, reply_message, render_view, path); |
snapshot_taker->Start(); |
} else { |
AutomationJSONReply(this, reply_message) |