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

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

Issue 190063006: Infobar Componentization Proof of Concept (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor fixes Created 6 years, 9 months 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/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()) {

Powered by Google App Engine
This is Rietveld 408576698