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

Unified Diff: chrome/browser/gpu/three_d_api_observer.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/gpu/three_d_api_observer.cc
diff --git a/chrome/browser/gpu/three_d_api_observer.cc b/chrome/browser/gpu/three_d_api_observer.cc
index 3d3429558a61aaf738eae6846bb39210dfb7eda5..2fa880384801614e2e21fe56a64000a1e59d6064 100644
--- a/chrome/browser/gpu/three_d_api_observer.cc
+++ b/chrome/browser/gpu/three_d_api_observer.cc
@@ -39,6 +39,7 @@ class ThreeDAPIInfoBarDelegate : public ConfirmInfoBarDelegate {
~ThreeDAPIInfoBarDelegate() override;
// ConfirmInfoBarDelegate:
+ infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
int GetIconId() const override;
bool EqualsDelegate(infobars::InfoBarDelegate* delegate) const override;
ThreeDAPIInfoBarDelegate* AsThreeDAPIInfoBarDelegate() override;
@@ -87,6 +88,11 @@ ThreeDAPIInfoBarDelegate::~ThreeDAPIInfoBarDelegate() {
}
}
+infobars::InfoBarDelegate::InfoBarIdentifier
+ThreeDAPIInfoBarDelegate::GetIdentifier() const {
+ return THREE_D_API_INFOBAR_DELEGATE;
+}
+
int ThreeDAPIInfoBarDelegate::GetIconId() const {
return IDR_INFOBAR_3D_BLOCKED;
}

Powered by Google App Engine
This is Rietveld 408576698