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

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 returns. Created 9 years, 2 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/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 82188aaaca93d231e4cd101b4dd07f1e3e9b98b7..af125f6c0b0c10482b4fb8cef2ccc83eb912e94e 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -2597,11 +2597,10 @@ void Browser::RegisterIntentHandlerHelper(TabContents* tab,
service.action = action;
service.type = type;
service.title = title;
- 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