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

Unified Diff: chrome/browser/ui/browser.cc

Issue 8144013: Add a check to the registry before the intent infobar is shown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test webdata calls. Created 9 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/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index ffec67caca232279866e909c97ad0d3362429209..8ca8745971926c94884fe7e0cacc8f7eaded7d54 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -2593,11 +2593,10 @@ void Browser::RegisterIntentHandlerHelper(TabContents* tab,
service.title = title;
service.setDisposition(disposition);
- InfoBarTabHelper* infobar_helper = tcw->infobar_tab_helper();
- infobar_helper->AddInfoBar(new RegisterIntentHandlerInfoBarDelegate(
- infobar_helper,
+ RegisterIntentHandlerInfoBarDelegate::MaybeShowIntentInfoBar(
+ tcw->infobar_tab_helper(),
WebIntentsRegistryFactory::GetForProfile(tcw->profile()),
- service));
+ service);
}
// static

Powered by Google App Engine
This is Rietveld 408576698