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

Unified Diff: third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp

Issue 2883353002: Replace ASSERT with DCHECK_LE/GE/GT/LT/NE as appropriate (Closed)
Patch Set: DCHECK in BluetoothCharacteristicProperties.cpp Created 3 years, 7 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/core/frame/SubresourceIntegrity.cpp
diff --git a/third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp b/third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp
index 78cc9be4f32536309fcc43f18afdd00d5adc5441..2eb35697636960c2963dd75fd7f866622f4c8e17 100644
--- a/third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp
+++ b/third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp
@@ -70,8 +70,8 @@ HashAlgorithm SubresourceIntegrity::GetPrioritizedHashFunction(
const HashAlgorithm kWeakerThanSha512[] = {kHashAlgorithmSha256,
kHashAlgorithmSha384};
- ASSERT(algorithm1 != kHashAlgorithmSha1);
- ASSERT(algorithm2 != kHashAlgorithmSha1);
+ DCHECK_NE(algorithm1, kHashAlgorithmSha1);
+ DCHECK_NE(algorithm2, kHashAlgorithmSha1);
if (algorithm1 == algorithm2)
return algorithm1;

Powered by Google App Engine
This is Rietveld 408576698