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 2bf55428fd58d1657456a1d85837bdf5ab266567..5b15fa79c4cafbeffa9c2882a4571e93cdad66f1 100644 |
--- a/chrome/browser/automation/testing_automation_provider.cc |
+++ b/chrome/browser/automation/testing_automation_provider.cc |
@@ -3186,9 +3186,8 @@ void TestingAutomationProvider::GetInstantInfo(Browser* browser, |
info->SetBoolean("enabled", true); |
info->SetBoolean("active", (instant->GetPreviewContents() != NULL)); |
info->SetBoolean("current", instant->IsCurrent()); |
- if (instant->GetPreviewContents() && |
- instant->GetPreviewContents()->web_contents()) { |
- WebContents* contents = instant->GetPreviewContents()->web_contents(); |
+ if (instant->GetPreviewContents()) { |
+ WebContents* contents = instant->GetPreviewContents(); |
info->SetBoolean("loading", contents->IsLoading()); |
info->SetString("location", contents->GetURL().spec()); |
info->SetString("title", contents->GetTitle()); |