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

Unified Diff: components/infobars/core/infobar_delegate.cc

Issue 1540423004: Add card details and legal message to Android save credit card infobar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initial draft 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: components/infobars/core/infobar_delegate.cc
diff --git a/components/infobars/core/infobar_delegate.cc b/components/infobars/core/infobar_delegate.cc
index 4da01aa5eaef7ba885116bbebdd1634666931544..98901ecb9ca2d022db43ad8951938523a8a04533 100644
--- a/components/infobars/core/infobar_delegate.cc
+++ b/components/infobars/core/infobar_delegate.cc
@@ -21,6 +21,24 @@ namespace infobars {
const int InfoBarDelegate::kNoIconID = 0;
+InfoBarDelegate::Detail::Detail() : icon_id(kNoIconID) {
+}
+
+InfoBarDelegate::Detail::~Detail() {
+}
+
+InfoBarDelegate::Description::Description() {
+}
+
+InfoBarDelegate::Description::~Description() {
+}
+
+InfoBarDelegate::Description::Link::Link() : start(0), end(0) {
+}
+
+InfoBarDelegate::Description::Link::~Link() {
+}
+
InfoBarDelegate::~InfoBarDelegate() {
}
@@ -59,6 +77,16 @@ gfx::Image InfoBarDelegate::GetIcon() const {
ResourceBundle::GetSharedInstance().GetNativeImageNamed(icon_id);
}
+const std::vector<InfoBarDelegate::Detail>& InfoBarDelegate::GetDetails()
+ const {
+ return empty_details_;
+}
+
+const std::vector<InfoBarDelegate::Description>&
+InfoBarDelegate::GetDescriptions() const {
+ return empty_descriptions_;
+}
+
bool InfoBarDelegate::EqualsDelegate(InfoBarDelegate* delegate) const {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698