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

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

Issue 11414286: Remove unneeded TabContents::FromWebContents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 8 years 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 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(
« no previous file with comments | « chrome/browser/automation/automation_provider_observers.cc ('k') | chrome/browser/intents/register_intent_handler_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698