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

Unified Diff: third_party/WebKit/Source/core/fileapi/FileReaderSync.cpp

Issue 2804403003: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/fileapi (Closed)
Patch Set: fix Created 3 years, 8 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 | « third_party/WebKit/Source/core/fileapi/FileReaderLoaderClient.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/fileapi/FileReaderSync.cpp
diff --git a/third_party/WebKit/Source/core/fileapi/FileReaderSync.cpp b/third_party/WebKit/Source/core/fileapi/FileReaderSync.cpp
index 8bea959d6c647a78479bb87325c2ab41cb730c61..c64341a414e240bb4067c2656fe633d4851a30b3 100644
--- a/third_party/WebKit/Source/core/fileapi/FileReaderSync.cpp
+++ b/third_party/WebKit/Source/core/fileapi/FileReaderSync.cpp
@@ -71,7 +71,7 @@ DOMArrayBuffer* FileReaderSync::readAsArrayBuffer(
ScriptState* script_state,
Blob* blob,
ExceptionState& exception_state) {
- ASSERT(blob);
+ DCHECK(blob);
std::unique_ptr<FileReaderLoader> loader =
FileReaderLoader::Create(FileReaderLoader::kReadAsArrayBuffer, nullptr);
@@ -84,7 +84,7 @@ DOMArrayBuffer* FileReaderSync::readAsArrayBuffer(
String FileReaderSync::readAsBinaryString(ScriptState* script_state,
Blob* blob,
ExceptionState& exception_state) {
- ASSERT(blob);
+ DCHECK(blob);
std::unique_ptr<FileReaderLoader> loader =
FileReaderLoader::Create(FileReaderLoader::kReadAsBinaryString, nullptr);
@@ -97,7 +97,7 @@ String FileReaderSync::readAsText(ScriptState* script_state,
Blob* blob,
const String& encoding,
ExceptionState& exception_state) {
- ASSERT(blob);
+ DCHECK(blob);
std::unique_ptr<FileReaderLoader> loader =
FileReaderLoader::Create(FileReaderLoader::kReadAsText, nullptr);
@@ -110,7 +110,7 @@ String FileReaderSync::readAsText(ScriptState* script_state,
String FileReaderSync::readAsDataURL(ScriptState* script_state,
Blob* blob,
ExceptionState& exception_state) {
- ASSERT(blob);
+ DCHECK(blob);
std::unique_ptr<FileReaderLoader> loader =
FileReaderLoader::Create(FileReaderLoader::kReadAsDataURL, nullptr);
« no previous file with comments | « third_party/WebKit/Source/core/fileapi/FileReaderLoaderClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698