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

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

Issue 11421079: Persist the Instant API to committed search result pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Kittens live! Created 8 years, 1 month 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 47036a383d9ad8c1c5622eaaae314a1f84401187..6da463d8f7b16aedac28785da840dc69740724d1 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());
« no previous file with comments | « no previous file | chrome/browser/instant/instant_browsertest.cc » ('j') | chrome/browser/instant/instant_client.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698