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

Unified Diff: Source/modules/notifications/Notification.cpp

Issue 1240083002: Remove 'blink::WebSerializedOrigin' (2/4) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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 | Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/notifications/Notification.cpp
diff --git a/Source/modules/notifications/Notification.cpp b/Source/modules/notifications/Notification.cpp
index 1e30c15b6892c1bbb7ce60820bc7bc6102a81baf..f9db95965ebac7f439c1e089ac3fc6bc8f06107d 100644
--- a/Source/modules/notifications/Notification.cpp
+++ b/Source/modules/notifications/Notification.cpp
@@ -47,7 +47,6 @@
#include "platform/RuntimeEnabledFeatures.h"
#include "platform/UserGestureIndicator.h"
#include "public/platform/Platform.h"
-#include "public/platform/WebSerializedOrigin.h"
#include "public/platform/WebString.h"
#include "public/platform/modules/notifications/WebNotificationData.h"
#include "public/platform/modules/notifications/WebNotificationManager.h"
@@ -192,7 +191,7 @@ void Notification::show()
Vector<char> emptyDataWireBytes;
WebNotificationData notificationData(m_title, dir, m_lang, m_body, m_tag, m_iconUrl, m_vibrate, m_silent, emptyDataWireBytes);
- notificationManager()->show(WebSerializedOrigin(*origin), notificationData, this);
+ notificationManager()->show(*origin, notificationData, this);
m_state = NotificationStateShowing;
}
@@ -214,7 +213,7 @@ void Notification::close()
SecurityOrigin* origin = executionContext()->securityOrigin();
ASSERT(origin);
- notificationManager()->closePersistent(WebSerializedOrigin(*origin), m_persistentId);
+ notificationManager()->closePersistent(*origin, m_persistentId);
}
}
@@ -283,7 +282,7 @@ WebNotificationPermission Notification::checkPermission(ExecutionContext* contex
SecurityOrigin* origin = context->securityOrigin();
ASSERT(origin);
- return notificationManager()->checkPermission(WebSerializedOrigin(*origin));
+ return notificationManager()->checkPermission(*origin);
}
void Notification::requestPermission(ExecutionContext* context, NotificationPermissionCallback* callback)
« no previous file with comments | « no previous file | Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698