Commit a81aa896 authored by yoshiki iguchi's avatar yoshiki iguchi Committed by Commit Bot

Implement ShouldDisplaySettingsButton() for arc notification

Bug: none
Change-Id: I5659106f3c8bd6608f4f6f410e3815fa1bed8c71
Reviewed-on: https://chromium-review.googlesource.com/567899Reviewed-by: default avatarYuichiro Hanada <yhanada@chromium.org>
Commit-Queue: Yoshiki Iguchi <yoshiki@chromium.org>
Cr-Commit-Position: refs/heads/master@{#485943}
parent 80510be8
......@@ -51,4 +51,9 @@ bool ArcNotificationDelegate::SettingsClick() {
return true;
}
bool ArcNotificationDelegate::ShouldDisplaySettingsButton() {
DCHECK(item_);
return item_->IsOpeningSettingsSupported();
}
} // namespace arc
......@@ -33,6 +33,7 @@ class ArcNotificationDelegate : public message_center::NotificationDelegate {
void Close(bool by_user) override;
void Click() override;
bool SettingsClick() override;
bool ShouldDisplaySettingsButton() override;
private:
// The destructor is private since this class is ref-counted.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment