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

Unified Diff: extensions/renderer/api/display_source/display_source_session.cc

Issue 1730583002: [chrome.displaySource] further implementation of call completion callbacks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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: extensions/renderer/api/display_source/display_source_session.cc
diff --git a/extensions/renderer/api/display_source/display_source_session.cc b/extensions/renderer/api/display_source/display_source_session.cc
index df830079b057bd9ff6509d101e3cdfc5dfe33bf6..20b14420dd93971e633bdb951240d8e5dca601fe 100644
--- a/extensions/renderer/api/display_source/display_source_session.cc
+++ b/extensions/renderer/api/display_source/display_source_session.cc
@@ -22,15 +22,12 @@ DisplaySourceSession::DisplaySourceSession()
DisplaySourceSession::~DisplaySourceSession() = default;
-void DisplaySourceSession::SetCallbacks(
- const SinkIdCallback& started_callback,
- const SinkIdCallback& terminated_callback,
+void DisplaySourceSession::SetNotificationCallbacks(
+ const base::Closure& terminated_callback,
const ErrorCallback& error_callback) {
- DCHECK(started_callback_.is_null());
DCHECK(terminated_callback_.is_null());
DCHECK(error_callback_.is_null());
- started_callback_ = started_callback;
terminated_callback_ = terminated_callback;
error_callback_ = error_callback;
}

Powered by Google App Engine
This is Rietveld 408576698