summaryrefslogtreecommitdiff
path: root/Source/WebKit/chromium/bridge/PeerConnectionHandlerInternal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/chromium/bridge/PeerConnectionHandlerInternal.cpp')
-rw-r--r--Source/WebKit/chromium/bridge/PeerConnectionHandlerInternal.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/Source/WebKit/chromium/bridge/PeerConnectionHandlerInternal.cpp b/Source/WebKit/chromium/bridge/PeerConnectionHandlerInternal.cpp
index cfc33584a..d8f61f7f0 100644
--- a/Source/WebKit/chromium/bridge/PeerConnectionHandlerInternal.cpp
+++ b/Source/WebKit/chromium/bridge/PeerConnectionHandlerInternal.cpp
@@ -45,15 +45,21 @@
namespace WebCore {
-PeerConnectionHandlerInternal::PeerConnectionHandlerInternal(PeerConnectionHandlerClient* client, const String& serverConfiguration, PassRefPtr<SecurityOrigin> securityOrigin)
+PeerConnectionHandlerInternal::PeerConnectionHandlerInternal(PeerConnectionHandlerClient* client, const String& serverConfiguration, const String& username)
: m_client(client)
{
ASSERT(m_client);
m_webHandler = adoptPtr(WebKit::webKitPlatformSupport()->createPeerConnectionHandler(this));
// FIXME: When there is some error reporting avaliable in the PeerConnection object report
// if we didn't get a WebPeerConnectionHandler instance.
- if (m_webHandler)
- m_webHandler->initialize(serverConfiguration, securityOrigin);
+
+ if (m_webHandler) {
+ // Dual calls due to API change
+ m_webHandler->initialize(serverConfiguration, username);
+
+ // DEPRECATED
+ m_webHandler->initialize(serverConfiguration, SecurityOrigin::createFromString(username));
+ }
}
PeerConnectionHandlerInternal::~PeerConnectionHandlerInternal()