| 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;
|
|
|