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 012fb4922c3121bcfa754f7a63a1ea36ffb120fb..0a31511703c701bdba839154ca467312c3d099a0 100644 |
--- a/chrome/browser/automation/testing_automation_provider.cc |
+++ b/chrome/browser/automation/testing_automation_provider.cc |
@@ -27,7 +27,6 @@ |
#include "chrome/app/chrome_command_ids.h" |
#include "chrome/browser/api/infobars/confirm_infobar_delegate.h" |
#include "chrome/browser/api/infobars/infobar_service.h" |
-#include "chrome/browser/api/infobars/link_infobar_delegate.h" |
#include "chrome/browser/autocomplete/autocomplete_controller.h" |
#include "chrome/browser/autocomplete/autocomplete_match.h" |
#include "chrome/browser/autocomplete/autocomplete_result.h" |
@@ -65,6 +64,7 @@ |
#include "chrome/browser/history/top_sites.h" |
#include "chrome/browser/importer/importer_host.h" |
#include "chrome/browser/importer/importer_list.h" |
+#include "chrome/browser/infobars/alternate_nav_infobar_delegate.h" |
#include "chrome/browser/lifetime/application_lifetime.h" |
#include "chrome/browser/notifications/balloon.h" |
#include "chrome/browser/notifications/balloon_collection.h" |
@@ -2163,10 +2163,12 @@ ListValue* TestingAutomationProvider::GetInfobarsInfo(WebContents* wc) { |
buttons_list->Append(button_label); |
} |
infobar_item->Set("buttons", buttons_list); |
- } else if (infobar->AsLinkInfoBarDelegate()) { |
- infobar_item->SetString("type", "link_infobar"); |
- LinkInfoBarDelegate* link_infobar = infobar->AsLinkInfoBarDelegate(); |
- infobar_item->SetString("link_text", link_infobar->GetLinkText()); |
+ } else if (infobar->AsAlternateNavInfoBarDelegate()) { |
Peter Kasting
2013/01/04 01:09:07
Who actually cares about the values this is settin
|
+ infobar_item->SetString("type", "alternate_nav_infobar"); |
+ AlternateNavInfoBarDelegate* alternate_nav_infobar = |
+ infobar->AsAlternateNavInfoBarDelegate(); |
+ infobar_item->SetString("link_text", |
+ alternate_nav_infobar->GetLinkText()); |
} else if (infobar->AsExtensionInfoBarDelegate()) { |
infobar_item->SetString("type", "extension_infobar"); |
} else { |