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

Unified Diff: Source/modules/crypto/Key.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/crypto/Algorithm.cpp ('k') | Source/modules/geolocation/Geolocation.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/Key.cpp
diff --git a/Source/modules/crypto/Key.cpp b/Source/modules/crypto/Key.cpp
index b0031c6c2421013688245d14d72f37264ccd79f0..6fe4b0773354e05f6d2c7c9ff406126e5f2706b2 100644
--- a/Source/modules/crypto/Key.cpp
+++ b/Source/modules/crypto/Key.cpp
@@ -101,7 +101,7 @@ Key::Key(const WebKit::WebCryptoKey& key)
String Key::type() const
{
- return ASCIILiteral(keyTypeToString(m_key.type()));
+ return keyTypeToString(m_key.type());
}
bool Key::extractable() const
@@ -126,7 +126,7 @@ Vector<String> Key::usages() const
for (int i = 0; i < WTF_ARRAY_LENGTH(keyUsageMappings); ++i) {
WebKit::WebCryptoKeyUsage usage = keyUsageMappings[i].value;
if (m_key.usages() & usage)
- result.append(ASCIILiteral(keyUsageToString(usage)));
+ result.append(keyUsageToString(usage));
}
return result;
}
« no previous file with comments | « Source/modules/crypto/Algorithm.cpp ('k') | Source/modules/geolocation/Geolocation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698