mac: Fix the notification presenter of new API.

This commit is contained in:
Cheng Zhao 2014-07-28 11:52:26 +08:00
parent e52a089ec2
commit f552dc7ba4
3 changed files with 93 additions and 108 deletions

View file

@ -70,7 +70,7 @@ void BrowserClient::ShowDesktopNotification(
content::DesktopNotificationDelegate* delegate,
base::Closure* cancel_callback) {
auto presenter = notification_presenter();
if (!presenter)
if (presenter)
presenter->ShowNotification(params, delegate, cancel_callback);
}