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

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

Issue 1244703002: Remove 'blink::WebSerializedOrigin' (3/4) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: yay 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 f9db95965ebac7f439c1e089ac3fc6bc8f06107d..4ac301fe131c9af0bd40d396f9092e1d4da9c867 100644
--- a/Source/modules/notifications/Notification.cpp
+++ b/Source/modules/notifications/Notification.cpp
@@ -47,6 +47,7 @@
#include "platform/RuntimeEnabledFeatures.h"
#include "platform/UserGestureIndicator.h"
#include "public/platform/Platform.h"
+#include "public/platform/WebSecurityOrigin.h"
#include "public/platform/WebString.h"
#include "public/platform/modules/notifications/WebNotificationData.h"
#include "public/platform/modules/notifications/WebNotificationManager.h"
@@ -191,7 +192,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(*origin, notificationData, this);
+ notificationManager()->show(WebSecurityOrigin(origin), notificationData, this);
m_state = NotificationStateShowing;
}
@@ -213,7 +214,7 @@ void Notification::close()
SecurityOrigin* origin = executionContext()->securityOrigin();
ASSERT(origin);
- notificationManager()->closePersistent(*origin, m_persistentId);
+ notificationManager()->closePersistent(WebSecurityOrigin(origin), m_persistentId);
}
}
@@ -282,7 +283,7 @@ WebNotificationPermission Notification::checkPermission(ExecutionContext* contex
SecurityOrigin* origin = context->securityOrigin();
ASSERT(origin);
- return notificationManager()->checkPermission(*origin);
+ return notificationManager()->checkPermission(WebSecurityOrigin(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