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

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

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/custom_handlers/register_protocol_handler_infobar_delegate.h
diff --git a/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.h b/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.h
index 22f263cfdf9b4629a7ba86a2de08a6c410d1d2f9..2501e055c2c777fe50bde0150fe82552a0a282d1 100644
--- a/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.h
+++ b/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.h
@@ -6,7 +6,7 @@
#define CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_INFOBAR_DELEGATE_H_
#include "base/strings/string16.h"
-#include "chrome/browser/infobars/confirm_infobar_delegate.h"
+#include "chrome/browser/infobars/content_confirm_infobar_delegate.h"
#include "chrome/common/custom_handlers/protocol_handler.h"
class InfoBarService;
@@ -14,7 +14,8 @@ class ProtocolHandlerRegistry;
// An InfoBar delegate that enables the user to allow or deny storing credit
// card information gathered from a form submission.
-class RegisterProtocolHandlerInfoBarDelegate : public ConfirmInfoBarDelegate {
+class RegisterProtocolHandlerInfoBarDelegate
+ : public ContentConfirmInfoBarDelegate {
public:
// Creates a new register protocol handler infobar and delegate. Searches
// |infobar_service| for an existing infobar for the same |handler|; replaces
@@ -25,7 +26,8 @@ class RegisterProtocolHandlerInfoBarDelegate : public ConfirmInfoBarDelegate {
const ProtocolHandler& handler);
private:
- RegisterProtocolHandlerInfoBarDelegate(ProtocolHandlerRegistry* registry,
+ RegisterProtocolHandlerInfoBarDelegate(content::WebContents* web_contents,
+ ProtocolHandlerRegistry* registry,
const ProtocolHandler& handler);
virtual ~RegisterProtocolHandlerInfoBarDelegate();

Powered by Google App Engine
This is Rietveld 408576698