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

Unified Diff: Source/core/dom/DOMException.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/css/StyleSheetContents.cpp ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DOMException.cpp
diff --git a/Source/core/dom/DOMException.cpp b/Source/core/dom/DOMException.cpp
index 3287698668b707b9d4c5b041cc8dd22ba8265d74..7510e27dbd2655ec999759c5d87ba5fe71bc4003 100644
--- a/Source/core/dom/DOMException.cpp
+++ b/Source/core/dom/DOMException.cpp
@@ -100,8 +100,8 @@ PassRefPtr<DOMException> DOMException::create(ExceptionCode ec, const String& me
const CoreException* entry = getErrorEntry(ec);
ASSERT(entry);
return adoptRef(new DOMException(entry->code,
- ASCIILiteral(entry->name ? entry->name : "Error"),
- message.isNull() ? String(ASCIILiteral(entry->message)) : message));
+ entry->name ? entry->name : "Error",
+ message.isNull() ? String(entry->message) : message));
}
String DOMException::toString() const
@@ -114,9 +114,9 @@ String DOMException::getErrorName(ExceptionCode ec)
const CoreException* entry = getErrorEntry(ec);
ASSERT(entry);
if (!entry)
- return ASCIILiteral("UnknownError");
+ return "UnknownError";
- return ASCIILiteral(entry->name);
+ return entry->name;
}
String DOMException::getErrorMessage(ExceptionCode ec)
@@ -124,9 +124,9 @@ String DOMException::getErrorMessage(ExceptionCode ec)
const CoreException* entry = getErrorEntry(ec);
ASSERT(entry);
if (!entry)
- return ASCIILiteral("Unknown error.");
+ return "Unknown error.";
- return ASCIILiteral(entry->message);
+ return entry->message;
}
unsigned short DOMException::getLegacyErrorCode(ExceptionCode ec)
« no previous file with comments | « Source/core/css/StyleSheetContents.cpp ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698