Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Unified Diff: chrome/browser/ui/views/ash/balloon_view_ash.cc

Issue 12277024: Notificaitons refactor step 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more feedback from Steven Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/ash/balloon_view_ash.cc
diff --git a/chrome/browser/ui/views/ash/balloon_view_ash.cc b/chrome/browser/ui/views/ash/balloon_view_ash.cc
index 75215f5398c5499db26ee12a449512475c48d94c..b7d31fe521eba04d76b2c5b01f91c8215d363267 100644
--- a/chrome/browser/ui/views/ash/balloon_view_ash.cc
+++ b/chrome/browser/ui/views/ash/balloon_view_ash.cc
@@ -23,6 +23,7 @@
#include "ui/gfx/image/image_skia.h"
#include "ui/message_center/message_center.h"
#include "ui/message_center/message_center_constants.h"
+#include "ui/message_center/notification_types.h"
#include "webkit/glue/image_resource_fetcher.h"
namespace {
@@ -195,9 +196,9 @@ void BalloonViewAsh::DownloadImages(const Notification& notification) {
const base::DictionaryValue* optional_fields = notification.optional_fields();
if (optional_fields) {
// Start a download for the notification's image if appropriate.
- if (optional_fields->HasKey(ui::notifications::kImageUrlKey)) {
+ if (optional_fields->HasKey(message_center::kImageUrlKey)) {
string16 url;
- optional_fields->GetString(ui::notifications::kImageUrlKey, &url);
+ optional_fields->GetString(message_center::kImageUrlKey, &url);
if (!url.empty()) {
downloads_.push_back(linked_ptr<ImageDownload>(new ImageDownload(
notification,
@@ -210,8 +211,8 @@ void BalloonViewAsh::DownloadImages(const Notification& notification) {
}
// Start a download for the notification's button icons if appropriate.
- const char* kButtonIconKeys[] = { ui::notifications::kButtonOneIconUrlKey,
- ui::notifications::kButtonTwoIconUrlKey };
+ const char* kButtonIconKeys[] = { message_center::kButtonOneIconUrlKey,
+ message_center::kButtonTwoIconUrlKey };
for (size_t i = 0; i < arraysize(kButtonIconKeys); ++i) {
if (optional_fields->HasKey(kButtonIconKeys[i])) {
string16 url;

Powered by Google App Engine
This is Rietveld 408576698