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

Unified Diff: Source/modules/presentation/PresentationSession.cpp

Issue 1212423003: Presentation API: Blink changes to allow getAvailability() to be rejected. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@presentation-availability-cleanups
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
Index: Source/modules/presentation/PresentationSession.cpp
diff --git a/Source/modules/presentation/PresentationSession.cpp b/Source/modules/presentation/PresentationSession.cpp
index effc411a2d4161a896975faa295da181fd4257ff..a22602535b294728b7bc67f9d968af08eee36ede 100644
--- a/Source/modules/presentation/PresentationSession.cpp
+++ b/Source/modules/presentation/PresentationSession.cpp
@@ -100,23 +100,16 @@ PresentationSession::~PresentationSession()
}
// static
-PresentationSession* PresentationSession::take(WebPresentationSessionClient* clientRaw, Presentation* presentation)
+PresentationSession* PresentationSession::take(WebPresentationSessionClient* client, Presentation* presentation)
{
- ASSERT(clientRaw);
+ ASSERT(client);
ASSERT(presentation);
- OwnPtr<WebPresentationSessionClient> client = adoptPtr(clientRaw);
PresentationSession* session = new PresentationSession(presentation->frame(), client->getId(), client->getUrl());
presentation->registerSession(session);
return session;
}
-// static
-void PresentationSession::dispose(WebPresentationSessionClient* client)
-{
- delete client;
-}
-
const AtomicString& PresentationSession::interfaceName() const
{
return EventTargetNames::PresentationSession;
« no previous file with comments | « Source/modules/presentation/PresentationSession.h ('k') | Source/modules/presentation/PresentationSessionClientCallbacks.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698