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

Unified Diff: chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc

Issue 211273007: Split InfoBarService core code into InfoBarManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + comments 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/custom_handlers/register_protocol_handler_infobar_delegate.cc
diff --git a/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc b/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc
index 6160b6ef887115364a0b1f315a888ae8c43d206c..a23ad22eca6e7bed45b77d24c74041b0b9a71b74 100644
--- a/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc
+++ b/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc
@@ -7,6 +7,7 @@
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/custom_handlers/protocol_handler_registry.h"
#include "chrome/browser/infobars/infobar.h"
+#include "chrome/browser/infobars/infobar_manager.h"
#include "chrome/browser/infobars/infobar_service.h"
#include "chrome/common/url_constants.h"
#include "content/public/browser/user_metrics.h"
@@ -26,8 +27,9 @@ void RegisterProtocolHandlerInfoBarDelegate::Create(
scoped_ptr<ConfirmInfoBarDelegate>(
new RegisterProtocolHandlerInfoBarDelegate(registry, handler))));
- for (size_t i = 0; i < infobar_service->infobar_count(); ++i) {
- InfoBar* existing_infobar = infobar_service->infobar_at(i);
+ InfoBarManager* infobar_manager = infobar_service->infobar_manager();
+ for (size_t i = 0; i < infobar_manager->infobar_count(); ++i) {
+ InfoBar* existing_infobar = infobar_manager->infobar_at(i);
RegisterProtocolHandlerInfoBarDelegate* existing_delegate =
existing_infobar->delegate()->
AsRegisterProtocolHandlerInfoBarDelegate();
« no previous file with comments | « chrome/browser/content_settings/permission_queue_controller.cc ('k') | chrome/browser/download/download_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698