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

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: Rebasing 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 e97e956e5d0c718c2e3ea812a9dc690d6065a1a7..54f3312100235874efc5580bb25ac17aec1141ab 100644
--- a/chrome/browser/gpu/three_d_api_observer.cc
+++ b/chrome/browser/gpu/three_d_api_observer.cc
@@ -38,6 +38,7 @@ class ThreeDAPIInfoBarDelegate : public ConfirmInfoBarDelegate {
~ThreeDAPIInfoBarDelegate() override;
// ConfirmInfoBarDelegate:
+ std::string GetIdentifier() const override;
int GetIconId() const override;
bool EqualsDelegate(infobars::InfoBarDelegate* delegate) const override;
ThreeDAPIInfoBarDelegate* AsThreeDAPIInfoBarDelegate() override;
@@ -86,6 +87,10 @@ ThreeDAPIInfoBarDelegate::~ThreeDAPIInfoBarDelegate() {
}
}
+std::string ThreeDAPIInfoBarDelegate::GetIdentifier() const {
+ return "ThreeDAPIInfoBarDelegate";
+}
+
int ThreeDAPIInfoBarDelegate::GetIconId() const {
return IDR_INFOBAR_3D_BLOCKED;
}

Powered by Google App Engine
This is Rietveld 408576698