summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/automation')
-rw-r--r--chrome/browser/automation/testing_automation_provider.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
index b0ebd6c..f9ee0f3 100644
--- a/chrome/browser/automation/testing_automation_provider.cc
+++ b/chrome/browser/automation/testing_automation_provider.cc
@@ -2710,7 +2710,11 @@ ListValue* TestingAutomationProvider::GetInfobarsInfo(WebContents* wc) {
InfoBarDelegate* infobar = infobar_helper->GetInfoBarDelegateAt(i);
if (infobar->AsConfirmInfoBarDelegate()) {
// Also covers ThemeInstalledInfoBarDelegate.
- infobar_item->SetString("type", "confirm_infobar");
+ if (infobar->AsRegisterProtocolHandlerInfoBarDelegate()) {
+ infobar_item->SetString("type", "rph_infobar");
+ } else {
+ infobar_item->SetString("type", "confirm_infobar");
+ }
ConfirmInfoBarDelegate* confirm_infobar =
infobar->AsConfirmInfoBarDelegate();
infobar_item->SetString("text", confirm_infobar->GetMessageText());