Chromium Code Reviews| Index: Source/modules/presentation/PresentationController.cpp |
| diff --git a/Source/modules/presentation/PresentationController.cpp b/Source/modules/presentation/PresentationController.cpp |
| index b5ccfa76bb74b0225a7e1cdb372ea23179f5a159..ca5958707049389895c9c22aacf1b213c4e72bcd 100644 |
| --- a/Source/modules/presentation/PresentationController.cpp |
| +++ b/Source/modules/presentation/PresentationController.cpp |
| @@ -104,6 +104,14 @@ void PresentationController::joinSession(const String& presentationUrl, const St |
| m_client->joinSession(presentationUrl, presentationId, callbacks); |
| } |
| +void PresentationController::closeSession(const String& presentationId) |
| +{ |
| + if (!m_client) { |
|
whywhat
2015/03/17 23:35:19
nit: remove the curly braces to be consistent with
haibinlu
2015/03/18 00:58:22
Done.
|
| + return; |
| + } |
| + m_client->closeSession(presentationId); |
|
whywhat
2015/03/17 23:35:19
high level question: do we want to get any result
haibinlu
2015/03/18 00:58:22
The result of session.close is onstatechange event
whywhat
2015/03/18 12:51:19
Ok, I think this makes sense and aligns with the s
|
| +} |
| + |
| void PresentationController::setPresentation(Presentation* presentation) |
| { |
| m_presentation = presentation; |