diff options
Diffstat (limited to 'chrome/browser/extensions/extension_app_api.cc')
-rw-r--r-- | chrome/browser/extensions/extension_app_api.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/extensions/extension_app_api.cc b/chrome/browser/extensions/extension_app_api.cc index d89526c..45e666a 100644 --- a/chrome/browser/extensions/extension_app_api.cc +++ b/chrome/browser/extensions/extension_app_api.cc @@ -45,7 +45,8 @@ bool AppNotifyFunction::RunImpl() { if (details->HasKey(kBodyTextKey)) EXTENSION_FUNCTION_VALIDATE(details->GetString(kBodyTextKey, &body)); - scoped_ptr<AppNotification> item(new AppNotification(title, body)); + scoped_ptr<AppNotification> item(new AppNotification( + true, "", id, title, body)); if (details->HasKey(kLinkUrlKey)) { std::string link_url; @@ -68,7 +69,7 @@ bool AppNotifyFunction::RunImpl() { AppNotificationManager* manager = profile()->GetExtensionService()->app_notification_manager(); - manager->Add(id, item.release()); + manager->Add(item.release()); NotificationService::current()->Notify( chrome::NOTIFICATION_APP_NOTIFICATION_STATE_CHANGED, |