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

Unified Diff: Source/modules/mediastream/RTCSessionDescription.cpp

Issue 18548003: Rename ExceptionCode constants to use the names in the spec (2/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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: Source/modules/mediastream/RTCSessionDescription.cpp
diff --git a/Source/modules/mediastream/RTCSessionDescription.cpp b/Source/modules/mediastream/RTCSessionDescription.cpp
index 81f7961da804b4e3cb9e22b4e6fb13046862b274..578c1538967ae1c15160aa747c4195c254a9f5bb 100644
--- a/Source/modules/mediastream/RTCSessionDescription.cpp
+++ b/Source/modules/mediastream/RTCSessionDescription.cpp
@@ -48,14 +48,14 @@ PassRefPtr<RTCSessionDescription> RTCSessionDescription::create(const Dictionary
String type;
bool ok = dictionary.get("type", type);
if (!ok || !verifyType(type)) {
- ec = TYPE_MISMATCH_ERR;
+ ec = TypeMismatchError;
return 0;
}
String sdp;
ok = dictionary.get("sdp", sdp);
if (!ok || sdp.isEmpty()) {
- ec = TYPE_MISMATCH_ERR;
+ ec = TypeMismatchError;
return 0;
}
@@ -87,7 +87,7 @@ void RTCSessionDescription::setType(const String& type, ExceptionCode& ec)
if (verifyType(type))
m_webSessionDescription.setType(type);
else
- ec = TYPE_MISMATCH_ERR;
+ ec = TypeMismatchError;
}
String RTCSessionDescription::sdp()
« no previous file with comments | « Source/modules/mediastream/RTCPeerConnection.cpp ('k') | Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698