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

Unified Diff: chrome/browser/notifications/message_center_notifications_browsertest.cc

Issue 1395093002: Fix system notifications incorrectly marked as type WEB_PAGE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@timeout
Patch Set: Fix typo Created 5 years, 2 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/notifications/message_center_notifications_browsertest.cc
diff --git a/chrome/browser/notifications/message_center_notifications_browsertest.cc b/chrome/browser/notifications/message_center_notifications_browsertest.cc
index 9f95101c299da2a4930dd980209dd8e319d11b5d..2503cd586aa8cce5d7d5a0a2d79b17c7cd1c58dc 100644
--- a/chrome/browser/notifications/message_center_notifications_browsertest.cc
+++ b/chrome/browser/notifications/message_center_notifications_browsertest.cc
@@ -21,6 +21,8 @@
#include "chrome/test/base/test_switches.h"
#include "ui/message_center/message_center.h"
#include "ui/message_center/message_center_types.h"
+#include "ui/message_center/notification_types.h"
+#include "ui/message_center/notifier_settings.h"
class TestAddObserver : public message_center::MessageCenterObserver {
public:
@@ -102,12 +104,15 @@ class MessageCenterNotificationsTest : public InProcessBrowserTest {
new_delegate->AddRef();
}
- return Notification(GURL("chrome-test://testing/"),
+ return Notification(message_center::NOTIFICATION_TYPE_SIMPLE,
base::ASCIIToUTF16("title"),
base::ASCIIToUTF16("message"),
gfx::Image(),
+ message_center::NotifierId(),
base::UTF8ToUTF16("chrome-test://testing/"),
+ GURL("chrome-test://testing/"),
"REPLACE-ME",
+ message_center::RichNotificationData(),
new_delegate);
}

Powered by Google App Engine
This is Rietveld 408576698