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

Unified Diff: third_party/WebKit/Source/platform/blob/BlobURL.cpp

Issue 2846303002: Replace ASSERT with DCHECK in platform/ (Closed)
Patch Set: rebase 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
Index: third_party/WebKit/Source/platform/blob/BlobURL.cpp
diff --git a/third_party/WebKit/Source/platform/blob/BlobURL.cpp b/third_party/WebKit/Source/platform/blob/BlobURL.cpp
index 484fcb0495628e487bdef9de0f45b0396e5ef811..90b3bb3c9f7b087724d5a3d5af4e73201f542abb 100644
--- a/third_party/WebKit/Source/platform/blob/BlobURL.cpp
+++ b/third_party/WebKit/Source/platform/blob/BlobURL.cpp
@@ -40,12 +40,12 @@ namespace blink {
const char BlobURL::kBlobProtocol[] = "blob";
KURL BlobURL::CreatePublicURL(SecurityOrigin* security_origin) {
- ASSERT(security_origin);
+ DCHECK(security_origin);
return CreateBlobURL(security_origin->ToString());
}
String BlobURL::GetOrigin(const KURL& url) {
- ASSERT(url.ProtocolIs(kBlobProtocol));
+ DCHECK(url.ProtocolIs(kBlobProtocol));
unsigned start_index = url.PathStart();
unsigned end_index = url.PathAfterLastSlash();
@@ -57,7 +57,7 @@ KURL BlobURL::CreateInternalStreamURL() {
}
KURL BlobURL::CreateBlobURL(const String& origin_string) {
- ASSERT(!origin_string.IsEmpty());
+ DCHECK(!origin_string.IsEmpty());
String url_string =
"blob:" + origin_string + '/' + CreateCanonicalUUIDString();
return KURL::CreateIsolated(kParsedURLString, url_string);
« no previous file with comments | « third_party/WebKit/Source/platform/WebThreadSupportingGC.h ('k') | third_party/WebKit/Source/platform/geometry/FloatPolygon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698