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

Unified Diff: content/renderer/presentation/presentation_session_client.cc

Issue 1024903003: [Presentation API] Plumbing of |onstatechange| from the Mojo service to the public/platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Call the Mojo method again from the callback Created 5 years, 9 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: content/renderer/presentation/presentation_session_client.cc
diff --git a/content/renderer/presentation/presentation_session_client.cc b/content/renderer/presentation/presentation_session_client.cc
index e1f468ffbc27ccb46730e749dcb4841aa8d3b402..62b28527c29e816ecbeca8700f684b8f7bfbf5ae 100644
--- a/content/renderer/presentation/presentation_session_client.cc
+++ b/content/renderer/presentation/presentation_session_client.cc
@@ -5,15 +5,14 @@
#include "content/renderer/presentation/presentation_session_client.h"
#include "base/logging.h"
-#include "content/renderer/presentation/presentation_session_dispatcher.h"
#include "third_party/WebKit/public/platform/WebString.h"
namespace content {
PresentationSessionClient::PresentationSessionClient(
- PresentationSessionDispatcher* dispatcher)
- : url_(blink::WebString::fromUTF8(dispatcher->GetUrl())),
- id_(blink::WebString::fromUTF8(dispatcher->GetId())) {
+ presentation::PresentationSessionInfoPtr session_info)
+ : url_(blink::WebString::fromUTF8(session_info->url)),
+ id_(blink::WebString::fromUTF8(session_info->id)) {
}
PresentationSessionClient::~PresentationSessionClient() {

Powered by Google App Engine
This is Rietveld 408576698