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

Unified Diff: third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp

Issue 2511633002: Rename "updateICE" to "setConfiguration", everywhere except in Blink. (Closed)
Patch Set: Making sure updateIce doesn't change behavior in this CL. Created 4 years, 1 month 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: third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp b/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
index 79f35a22693a050135726de006be5a2fbaca6f97..8d2a60b778239fc21ed7f8f7c5dcc03e7b6753ab 100644
--- a/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
+++ b/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
@@ -800,7 +800,7 @@ RTCSessionDescription* RTCPeerConnection::remoteDescription() {
void RTCPeerConnection::updateIce(ExecutionContext* context,
const RTCConfiguration& rtcConfiguration,
- const Dictionary& mediaConstraints,
+ const Dictionary&,
ExceptionState& exceptionState) {
if (throwExceptionIfSignalingStateClosed(m_signalingState, exceptionState))
return;
@@ -818,12 +818,11 @@ void RTCPeerConnection::updateIce(ExecutionContext* context,
return;
}
- // Constraints are ignored.
- bool valid = m_peerHandler->updateICE(configuration);
- if (!valid)
- exceptionState.throwDOMException(
- SyntaxError,
- "Could not update the ICE Agent with the given configuration.");
+ // TODO(deadbeef): When this changes to setConfiguration, call
+ // m_peerHandler->setConfiguration.
hbos_chromium 2016/11/21 09:13:04 This will now no longer track updateIce (RTCPeerCo
hbos_chromium 2016/11/21 09:17:56 If you land as-is (up to you) take a note of this
+ exceptionState.throwDOMException(
+ SyntaxError,
+ "Could not update the ICE Agent with the given configuration.");
}
ScriptPromise RTCPeerConnection::generateCertificate(

Powered by Google App Engine
This is Rietveld 408576698