| Index: chrome/browser/automation/automation_provider_observers.cc
 | 
| diff --git a/chrome/browser/automation/automation_provider_observers.cc b/chrome/browser/automation/automation_provider_observers.cc
 | 
| index f1c6a008599d50d1c2697f487457693f1e356537..93a890cb551aa750004bc907aa4abd9052d9e3be 100644
 | 
| --- a/chrome/browser/automation/automation_provider_observers.cc
 | 
| +++ b/chrome/browser/automation/automation_provider_observers.cc
 | 
| @@ -37,6 +37,7 @@
 | 
|  #include "chrome/browser/history/history_types.h"
 | 
|  #include "chrome/browser/history/top_sites.h"
 | 
|  #include "chrome/browser/infobars/confirm_infobar_delegate.h"
 | 
| +#include "chrome/browser/infobars/infobar_manager.h"
 | 
|  #include "chrome/browser/infobars/infobar_service.h"
 | 
|  #include "chrome/browser/metrics/metric_event_duration_details.h"
 | 
|  #include "chrome/browser/profiles/profile.h"
 | 
| @@ -1214,8 +1215,9 @@ void InfoBarCountObserver::Observe(
 | 
|  }
 | 
|  
 | 
|  void InfoBarCountObserver::CheckCount() {
 | 
| -  if (InfoBarService::FromWebContents(web_contents_)->infobar_count() !=
 | 
| -      target_count_)
 | 
| +  if (InfoBarService::FromWebContents(web_contents_)
 | 
| +          ->infobar_manager()
 | 
| +          .infobar_count() != target_count_)
 | 
|      return;
 | 
|  
 | 
|    if (automation_.get()) {
 | 
| 
 |