Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4598)

Unified Diff: chrome/browser/automation/testing_automation_provider.cc

Issue 8294030: Fix snapshotting on linux by creating a separate automation path for (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address Pawel's comments Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/automation/testing_automation_provider.cc
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
index 58a04741f2109e7b289ffce7f17fd92bf98a8d0e..a569d48c6bce90cd8e518b6ad54123b42725f3eb 100644
--- a/chrome/browser/automation/testing_automation_provider.cc
+++ b/chrome/browser/automation/testing_automation_provider.cc
@@ -6186,12 +6186,6 @@ void TestingAutomationProvider::GetTabTitleJSON(
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;
@@ -6215,7 +6209,8 @@ void TestingAutomationProvider::CaptureEntirePageJSON(
FilePath path(path_str);
// This will delete itself when finished.
PageSnapshotTaker* snapshot_taker = new PageSnapshotTaker(
- this, reply_message, render_view, path);
+ this, reply_message,
+ TabContentsWrapper::GetCurrentWrapperForContents(tab_contents), path);
snapshot_taker->Start();
} else {
AutomationJSONReply(this, reply_message)

Powered by Google App Engine
This is Rietveld 408576698