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

Unified Diff: chrome/browser/devtools/devtools_ui_bindings.cc

Issue 1520543004: Add method for identifying different InfoBars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit again Created 5 years 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/devtools/devtools_ui_bindings.cc
diff --git a/chrome/browser/devtools/devtools_ui_bindings.cc b/chrome/browser/devtools/devtools_ui_bindings.cc
index ba62f47b0c1cf609fbb8daade628572eef2df59e..377077657fad6af2c37bb26d5fd1da43e75155fb 100644
--- a/chrome/browser/devtools/devtools_ui_bindings.cc
+++ b/chrome/browser/devtools/devtools_ui_bindings.cc
@@ -126,6 +126,7 @@ class DevToolsConfirmInfoBarDelegate : public ConfirmInfoBarDelegate {
~DevToolsConfirmInfoBarDelegate() override;
private:
+ infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
base::string16 GetMessageText() const override;
base::string16 GetButtonLabel(InfoBarButton button) const override;
bool Accept() override;
@@ -150,6 +151,11 @@ DevToolsConfirmInfoBarDelegate::~DevToolsConfirmInfoBarDelegate() {
callback_.Run(false);
}
+infobars::InfoBarDelegate::InfoBarIdentifier
+DevToolsConfirmInfoBarDelegate::GetIdentifier() const {
+ return DEV_TOOLS_CONFIRM_INFOBAR_DELEGATE;
+}
+
base::string16 DevToolsConfirmInfoBarDelegate::GetMessageText() const {
return message_;
}
« no previous file with comments | « chrome/browser/chrome_quota_permission_context.cc ('k') | chrome/browser/devtools/global_confirm_info_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698