Commit 6bd9f15f authored by robliao@chromium.org's avatar robliao@chromium.org

Fix Crash Due to Programmatic Dismissal of a Notification.

The notification dismissal was reported as from a user, which is not the case when the notification is dismissed programmatically.

BUG=368405
R=dewittj@chromium.org, robliao@chromium.org

Review URL: https://codereview.chromium.org/260533002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266956 0039d316-1c4b-4281-b951-d872f2087c98
parent 8e9dd87c
......@@ -91,7 +91,7 @@ class NotificationCallbacks
message_center::MessageCenter* message_center =
delegate_->GetMessageCenter();
message_center->DisableNotificationsByNotifier(notifier_id_);
message_center->RemoveNotification(welcome_notification_id_, true);
message_center->RemoveNotification(welcome_notification_id_, false);
message_center->GetNotifierSettingsProvider()->SetNotifierEnabled(
notifier, false);
}
......
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