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

Unified Diff: chrome/browser/extensions/api/debugger/debugger_api.cc

Issue 922953002: Minor infobar cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync Created 5 years, 10 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/extensions/api/debugger/debugger_api.cc
diff --git a/chrome/browser/extensions/api/debugger/debugger_api.cc b/chrome/browser/extensions/api/debugger/debugger_api.cc
index c2f701feac15fe016dd221b395dc5a8e176d3681..1b7a2642b219dac0582a749e85866394071e2cd6 100644
--- a/chrome/browser/extensions/api/debugger/debugger_api.cc
+++ b/chrome/browser/extensions/api/debugger/debugger_api.cc
@@ -170,8 +170,8 @@ class ExtensionDevToolsInfoBarDelegate : public ConfirmInfoBarDelegate {
~ExtensionDevToolsInfoBarDelegate() override;
// ConfirmInfoBarDelegate:
- void InfoBarDismissed() override;
Type GetInfoBarType() const override;
+ void InfoBarDismissed() override;
bool ShouldExpireInternal(const NavigationDetails& details) const override;
base::string16 GetMessageText() const override;
int GetButtons() const override;
@@ -210,16 +210,16 @@ ExtensionDevToolsInfoBarDelegate::ExtensionDevToolsInfoBarDelegate(
ExtensionDevToolsInfoBarDelegate::~ExtensionDevToolsInfoBarDelegate() {
}
-void ExtensionDevToolsInfoBarDelegate::InfoBarDismissed() {
- if (client_host_)
- client_host_->MarkAsDismissed();
-}
-
infobars::InfoBarDelegate::Type
ExtensionDevToolsInfoBarDelegate::GetInfoBarType() const {
return WARNING_TYPE;
}
+void ExtensionDevToolsInfoBarDelegate::InfoBarDismissed() {
+ if (client_host_)
+ client_host_->MarkAsDismissed();
+}
+
bool ExtensionDevToolsInfoBarDelegate::ShouldExpireInternal(
const NavigationDetails& details) const {
return false;

Powered by Google App Engine
This is Rietveld 408576698