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

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 up merge 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 f83cafd5278bd0fc4f8b123fe5381cab125baaef..542b0b1a693f8483624b49472645def22dabd526 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -2598,11 +2598,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