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

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

Issue 1208083004: Presentation API: ignore presentation id passed to startSession(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments 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 | « content/renderer/presentation/presentation_dispatcher.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/presentation/presentation_dispatcher.cc
diff --git a/content/renderer/presentation/presentation_dispatcher.cc b/content/renderer/presentation/presentation_dispatcher.cc
index 4e6a3c7281915178832a93451171719b7b46ed64..24d4dcb7b2a85484eaeaff1910e9873672306a49 100644
--- a/content/renderer/presentation/presentation_dispatcher.cc
+++ b/content/renderer/presentation/presentation_dispatcher.cc
@@ -114,6 +114,12 @@ void PresentationDispatcher::startSession(
const blink::WebString& presentationUrl,
const blink::WebString& presentationId,
blink::WebPresentationSessionClientCallbacks* callback) {
+ startSession(presentationUrl, callback);
+}
+
+void PresentationDispatcher::startSession(
+ const blink::WebString& presentationUrl,
+ blink::WebPresentationSessionClientCallbacks* callback) {
DCHECK(callback);
ConnectToPresentationServiceIfNeeded();
@@ -122,7 +128,6 @@ void PresentationDispatcher::startSession(
// to be destroyed so we transfer its ownership to the mojo callback.
presentation_service_->StartSession(
presentationUrl.utf8(),
- presentationId.utf8(),
base::Bind(&PresentationDispatcher::OnSessionCreated,
base::Unretained(this),
base::Owned(callback)));
« no previous file with comments | « content/renderer/presentation/presentation_dispatcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698