Update implementation as per feedback

This commit is contained in:
Samuel Attard 2017-05-30 19:06:51 +10:00
parent 6cdfb43e4e
commit 5048425e6e
No known key found for this signature in database
GPG key ID: 273DC1869D8F13EF
22 changed files with 85 additions and 193 deletions

View file

@ -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() {