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

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

Issue 22572005: Remove all uses of the ASCIILiteral class. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rm it from wtf Created 7 years, 4 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 | « Source/modules/mediastream/MediaConstraintsImpl.cpp ('k') | Source/modules/mediastream/RTCDataChannel.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/mediastream/MediaStreamTrack.cpp
diff --git a/Source/modules/mediastream/MediaStreamTrack.cpp b/Source/modules/mediastream/MediaStreamTrack.cpp
index e8695fd7d5e4e5494580819f8cde7da41e2d099e..58c56123585e857e20694ee7cfd2ad220f86c67b 100644
--- a/Source/modules/mediastream/MediaStreamTrack.cpp
+++ b/Source/modules/mediastream/MediaStreamTrack.cpp
@@ -61,8 +61,8 @@ MediaStreamTrack::~MediaStreamTrack()
String MediaStreamTrack::kind() const
{
- DEFINE_STATIC_LOCAL(String, audioKind, (ASCIILiteral("audio")));
- DEFINE_STATIC_LOCAL(String, videoKind, (ASCIILiteral("video")));
+ DEFINE_STATIC_LOCAL(String, audioKind, ("audio"));
+ DEFINE_STATIC_LOCAL(String, videoKind, ("video"));
switch (m_component->source()->type()) {
case MediaStreamSource::TypeAudio:
@@ -106,15 +106,15 @@ void MediaStreamTrack::setEnabled(bool enabled)
String MediaStreamTrack::readyState() const
{
if (m_stopped)
- return ASCIILiteral("ended");
+ return "ended";
switch (m_component->source()->readyState()) {
case MediaStreamSource::ReadyStateLive:
- return ASCIILiteral("live");
+ return "live";
case MediaStreamSource::ReadyStateMuted:
- return ASCIILiteral("muted");
+ return "muted";
case MediaStreamSource::ReadyStateEnded:
- return ASCIILiteral("ended");
+ return "ended";
}
ASSERT_NOT_REACHED();
« no previous file with comments | « Source/modules/mediastream/MediaConstraintsImpl.cpp ('k') | Source/modules/mediastream/RTCDataChannel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698