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

Unified Diff: Source/core/frame/DOMWindowBase64.cpp

Issue 72363002: Rename es => exceptionState in other than bindings/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Retry Created 7 years, 1 month 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/frame/DOMWindow.cpp ('k') | Source/core/frame/History.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/DOMWindowBase64.cpp
diff --git a/Source/core/frame/DOMWindowBase64.cpp b/Source/core/frame/DOMWindowBase64.cpp
index a2e8d5ec185591b23fc6e560cb87dc024e92e076..2d2e1f7c3240a3d747745426761edbd16ab1f592 100644
--- a/Source/core/frame/DOMWindowBase64.cpp
+++ b/Source/core/frame/DOMWindowBase64.cpp
@@ -42,31 +42,31 @@ namespace WebCore {
namespace DOMWindowBase64 {
-String btoa(void*, const String& stringToEncode, ExceptionState& es)
+String btoa(void*, const String& stringToEncode, ExceptionState& exceptionState)
{
if (stringToEncode.isNull())
return String();
if (!stringToEncode.containsOnlyLatin1()) {
- es.throwDOMException(InvalidCharacterError, "'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");
+ exceptionState.throwDOMException(InvalidCharacterError, "'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");
return String();
}
return base64Encode(stringToEncode.latin1());
}
-String atob(void*, const String& encodedString, ExceptionState& es)
+String atob(void*, const String& encodedString, ExceptionState& exceptionState)
{
if (encodedString.isNull())
return String();
if (!encodedString.containsOnlyLatin1()) {
- es.throwDOMException(InvalidCharacterError, "'atob' failed: The string to be decoded contains characters outside of the Latin1 range.");
+ exceptionState.throwDOMException(InvalidCharacterError, "'atob' failed: The string to be decoded contains characters outside of the Latin1 range.");
return String();
}
Vector<char> out;
if (!base64Decode(encodedString, out, isHTMLSpace<UChar>, Base64ValidatePadding)) {
- es.throwDOMException(InvalidCharacterError, "'atob' failed: The string to be decoded is not correctly encoded.");
+ exceptionState.throwDOMException(InvalidCharacterError, "'atob' failed: The string to be decoded is not correctly encoded.");
return String();
}
« no previous file with comments | « Source/core/frame/DOMWindow.cpp ('k') | Source/core/frame/History.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698