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 2a048d27955d75ca14dc50ac6238a01f9a2c647e..9884e3308bf5649fb3b8257bdb94358ddf6fe17c 100644 |
--- a/chrome/browser/automation/testing_automation_provider.cc |
+++ b/chrome/browser/automation/testing_automation_provider.cc |
@@ -5883,7 +5883,7 @@ void TestingAutomationProvider::CaptureEntirePageJSON( |
FilePath path(path_str); |
// This will delete itself when finished. |
PageSnapshotTaker* snapshot_taker = new PageSnapshotTaker( |
- this, reply_message, TabContents::FromWebContents(web_contents), path); |
+ this, reply_message, web_contents, path); |
snapshot_taker->Start(); |
} else { |
AutomationJSONReply(this, reply_message) |
@@ -6346,7 +6346,7 @@ void TestingAutomationProvider::WaitForInfoBarCount( |
// The delegate will delete itself. |
new InfoBarCountObserver(this, reply_message, |
- TabContents::FromWebContents(controller->GetWebContents()), target_count); |
+ controller->GetWebContents(), target_count); |
} |
void TestingAutomationProvider::WaitForProcessLauncherThreadToGoIdle( |