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

Unified Diff: chrome/browser/infobars/infobar_responder.h

Issue 1175443002: Revert of Convert the WebRtcTestBase to use infobar and bubble autoresponders (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/infobars/infobar_responder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/infobars/infobar_responder.h
diff --git a/chrome/browser/infobars/infobar_responder.h b/chrome/browser/infobars/infobar_responder.h
index 2e68a06af8bccc55f7ff88c2b9c0f9c46bf8e2e0..266a2be9bcf6130cd6407186e5305643124ee16f 100644
--- a/chrome/browser/infobars/infobar_responder.h
+++ b/chrome/browser/infobars/infobar_responder.h
@@ -22,26 +22,19 @@
// The asynchronous response matches how real users will use the infobar.
class InfoBarResponder : public infobars::InfoBarManager::Observer {
public:
- enum AutoResponseType {
- ACCEPT,
- DENY,
- DISMISS
- };
-
- // The responder will asynchronously perform the requested |response|.
- InfoBarResponder(InfoBarService* infobar_service, AutoResponseType response);
+ // If |should_accept| is true, the responder will asynchronously Accept() the
+ // infobar; otherwise it will Cancel() it.
+ InfoBarResponder(InfoBarService* infobar_service, bool should_accept);
~InfoBarResponder() override;
// infobars::InfoBarManager::Observer:
void OnInfoBarAdded(infobars::InfoBar* infobar) override;
- void OnInfoBarReplaced(infobars::InfoBar* old_infobar,
- infobars::InfoBar* new_infobar) override;
private:
void Respond(ConfirmInfoBarDelegate* delegate);
InfoBarService* infobar_service_;
- AutoResponseType response_;
+ bool should_accept_;
DISALLOW_COPY_AND_ASSIGN(InfoBarResponder);
};
« no previous file with comments | « no previous file | chrome/browser/infobars/infobar_responder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698