[Download Notification] Use NotificationUIManager instead of MessageCenter
commit365ac4c9486e5f9963b06de940809189011d84d3
authoryoshiki <yoshiki@chromium.org>
Thu, 16 Apr 2015 08:56:30 +0000 (16 01:56 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 16 Apr 2015 08:56:52 +0000 (16 08:56 +0000)
treedfae57c3462d41372df3bfb6ba6190ae96796e3d
parent241b77740e48c9397a805ad8fba8df9f1d4cea54
[Download Notification] Use NotificationUIManager instead of MessageCenter

Direct use of message_center::MessageCenter may cause some problems (eg. crbug.com/469622) because it is not aware of profie.

This patch changes the code to use NotificationUIManager, which is a higher layer wrapper and is aware of profile, instead of message_center::MessageCenter, which is on lower layer and isn't aware of profile.

BUG=469622
TEST=manually tested

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

Cr-Commit-Position: refs/heads/master@{#325404}
chrome/browser/download/download_commands.cc
chrome/browser/download/notification/download_notification_item.cc
chrome/browser/download/notification/download_notification_item.h
chrome/browser/download/notification/download_notification_item_unittest.cc
chrome/browser/download/notification/download_notification_manager.cc
chrome/browser/download/notification/download_notification_manager.h
chrome/browser/notifications/notification_test_util.cc