Update implementation as per feedback
This commit is contained in:
parent
6cdfb43e4e
commit
5048425e6e
22 changed files with 85 additions and 193 deletions
|
@ -88,9 +88,9 @@ void LibnotifyNotification::Show(const base::string16& title,
|
|||
const std::string& tag,
|
||||
const GURL& icon_url,
|
||||
const SkBitmap& icon,
|
||||
const bool silent,
|
||||
const bool has_reply,
|
||||
const base::string16 reply_placeholder) {
|
||||
bool silent,
|
||||
bool has_reply,
|
||||
const base::string16& reply_placeholder) {
|
||||
notification_ = libnotify_loader_.notify_notification_new(
|
||||
base::UTF16ToUTF8(title).c_str(),
|
||||
base::UTF16ToUTF8(body).c_str(),
|
||||
|
@ -139,7 +139,8 @@ void LibnotifyNotification::Show(const base::string16& title,
|
|||
return;
|
||||
}
|
||||
|
||||
delegate()->NotificationDisplayed();
|
||||
if (delegate())
|
||||
delegate()->NotificationDisplayed();
|
||||
}
|
||||
|
||||
void LibnotifyNotification::Dismiss() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue