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

Unified Diff: ash/shell/window_type_launcher.cc

Issue 15582004: Move NotificationDelegate into message_center. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the ever-changing Mac unit tests. Created 7 years, 7 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
« no previous file with comments | « no previous file | ash/system/web_notification/web_notification_tray_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell/window_type_launcher.cc
diff --git a/ash/shell/window_type_launcher.cc b/ash/shell/window_type_launcher.cc
index 9c1a0b4ada143367627e5a442e349502eb6497ec..bf7d059ca9e7359ce4050f468798b182b5ad5240 100644
--- a/ash/shell/window_type_launcher.cc
+++ b/ash/shell/window_type_launcher.cc
@@ -348,17 +348,18 @@ void WindowTypeLauncher::ButtonPressed(views::Button* sender,
} else if (sender == show_web_notification_) {
ash::Shell::GetPrimaryRootWindowController()->shelf()->status_area_widget()
- ->web_notification_tray()->message_center()->AddNotification(
- message_center::NOTIFICATION_TYPE_SIMPLE,
- "id0",
- ASCIIToUTF16("Test Shell Web Notification"),
- ASCIIToUTF16("Notification message body."),
- ASCIIToUTF16("www.testshell.org"),
- "" /* extension id */,
- NULL /* optional_fields */);
+ ->web_notification_tray()->message_center()
+ ->AddNotification(message_center::NOTIFICATION_TYPE_SIMPLE,
+ "id0",
+ ASCIIToUTF16("Test Shell Web Notification"),
+ ASCIIToUTF16("Notification message body."),
+ ASCIIToUTF16("www.testshell.org"),
+ "" /* extension id */,
+ NULL /* optional_fields */,
+ NULL /* delegate */);
}
#if !defined(OS_MACOSX)
- else if (sender == examples_button_) {
+ else if (sender == examples_button_) {
views::examples::ShowExamplesWindowWithContent(
views::examples::DO_NOTHING_ON_CLOSE,
ash::Shell::GetInstance()->browser_context());
« no previous file with comments | « no previous file | ash/system/web_notification/web_notification_tray_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698