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

Unified Diff: chrome/browser/ui/views/message_center/web_notification_tray_browsertest.cc

Issue 554213003: Request the icon of a Web Notification in the renderer process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/message_center/web_notification_tray_browsertest.cc
diff --git a/chrome/browser/ui/views/message_center/web_notification_tray_browsertest.cc b/chrome/browser/ui/views/message_center/web_notification_tray_browsertest.cc
index 9d2a4fd9589060dc77053d1693a62dff616bb756..c7cc760c816cd0889420cf5aa0bcbc5154af754f 100644
--- a/chrome/browser/ui/views/message_center/web_notification_tray_browsertest.cc
+++ b/chrome/browser/ui/views/message_center/web_notification_tray_browsertest.cc
@@ -64,11 +64,10 @@ class WebNotificationTrayTest : public InProcessBrowserTest {
void AddNotification(const std::string& id, const std::string& replace_id) {
::Notification notification(GURL("chrome-extension://abbccedd"),
- GURL(),
base::ASCIIToUTF16("Test Web Notification"),
base::ASCIIToUTF16(
"Notification message body."),
- blink::WebTextDirectionDefault,
+ gfx::Image(),
base::string16(),
base::ASCIIToUTF16(replace_id),
new TestNotificationDelegate(id));
@@ -80,16 +79,15 @@ class WebNotificationTrayTest : public InProcessBrowserTest {
void UpdateNotification(const std::string& replace_id,
const std::string& new_id) {
::Notification notification(GURL("chrome-extension://abbccedd"),
- GURL(""),
base::ASCIIToUTF16("Updated Web Notification"),
base::ASCIIToUTF16("Updated message body."),
- blink::WebTextDirectionDefault,
+ gfx::Image(),
base::string16(),
base::ASCIIToUTF16(replace_id),
new TestNotificationDelegate(new_id));
- g_browser_process->notification_ui_manager()->Add(
- notification, browser()->profile());
+ g_browser_process->notification_ui_manager()->Add(notification,
+ browser()->profile());
}
void RemoveNotification(const std::string& id) {

Powered by Google App Engine
This is Rietveld 408576698