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

Unified Diff: Source/core/html/HTMLMediaElement.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/core/html/FormController.cpp ('k') | Source/core/html/ImageInputType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLMediaElement.cpp
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp
index 85ecc7663bee2719647c9eb645e2269f605e9f09..ba7d02b338a6d4b0cf7453df3f7e126f176d6084 100644
--- a/Source/core/html/HTMLMediaElement.cpp
+++ b/Source/core/html/HTMLMediaElement.cpp
@@ -188,7 +188,7 @@ private:
static bool canLoadURL(const KURL& url, const ContentType& contentType, const String& keySystem)
{
- DEFINE_STATIC_LOCAL(const String, codecs, (ASCIILiteral("codecs")));
+ DEFINE_STATIC_LOCAL(const String, codecs, ("codecs"));
String contentMIMEType = contentType.type().lower();
String contentTypeCodecs = contentType.parameter(codecs);
@@ -216,7 +216,7 @@ static bool canLoadURL(const KURL& url, const ContentType& contentType, const St
WebMimeRegistry::SupportsType HTMLMediaElement::supportsType(const ContentType& contentType, const String& keySystem)
{
- DEFINE_STATIC_LOCAL(const String, codecs, (ASCIILiteral("codecs")));
+ DEFINE_STATIC_LOCAL(const String, codecs, ("codecs"));
if (!RuntimeEnabledFeatures::mediaEnabled())
return WebMimeRegistry::IsNotSupported;
@@ -620,10 +620,10 @@ String HTMLMediaElement::canPlayType(const String& mimeType, const String& keySy
canPlay = emptyString();
break;
case WebMimeRegistry::MayBeSupported:
- canPlay = ASCIILiteral("maybe");
+ canPlay = "maybe";
break;
case WebMimeRegistry::IsSupported:
- canPlay = ASCIILiteral("probably");
+ canPlay = "probably";
break;
}
@@ -2126,13 +2126,13 @@ String HTMLMediaElement::preload() const
{
switch (m_preload) {
case MediaPlayer::None:
- return ASCIILiteral("none");
+ return "none";
break;
case MediaPlayer::MetaData:
- return ASCIILiteral("metadata");
+ return "metadata";
break;
case MediaPlayer::Auto:
- return ASCIILiteral("auto");
+ return "auto";
break;
}
« no previous file with comments | « Source/core/html/FormController.cpp ('k') | Source/core/html/ImageInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698